Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 23, 2021
1 parent 007dd21 commit 70c0573
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -7,7 +7,7 @@ require (
github.com/ipfs/go-log v1.0.4
github.com/klauspost/compress v1.11.7
github.com/libp2p/go-libp2p-core v0.8.5
github.com/libp2p/go-libp2p-testing v0.4.0
github.com/libp2p/go-libp2p-testing v0.4.1-0.20210723011506-70bd1a73c9d6
github.com/libp2p/go-libp2p-tls v0.1.3
github.com/libp2p/go-netroute v0.1.5
github.com/lucas-clemente/quic-go v0.21.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -240,8 +240,8 @@ github.com/libp2p/go-libp2p-core v0.0.1/go.mod h1:g/VxnTZ/1ygHxH3dKok7Vno1VfpvGc
github.com/libp2p/go-libp2p-core v0.8.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8=
github.com/libp2p/go-libp2p-core v0.8.5 h1:aEgbIcPGsKy6zYcC+5AJivYFedhYa4sW7mIpWpUaLKw=
github.com/libp2p/go-libp2p-core v0.8.5/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8=
github.com/libp2p/go-libp2p-testing v0.4.0 h1:PrwHRi0IGqOwVQWR3xzgigSlhlLfxgfXgkHxr77EghQ=
github.com/libp2p/go-libp2p-testing v0.4.0/go.mod h1:Q+PFXYoiYFN5CAEG2w3gLPEzotlKsNSbKQ/lImlOWF0=
github.com/libp2p/go-libp2p-testing v0.4.1-0.20210723011506-70bd1a73c9d6 h1:3mlVM2GKxatJumaqnfA/abgxhf0B728zdQ1eJlROYio=
github.com/libp2p/go-libp2p-testing v0.4.1-0.20210723011506-70bd1a73c9d6/go.mod h1:Q+PFXYoiYFN5CAEG2w3gLPEzotlKsNSbKQ/lImlOWF0=
github.com/libp2p/go-libp2p-tls v0.1.3 h1:twKMhMu44jQO+HgQK9X8NHO5HkeJu2QbhLzLJpa8oNM=
github.com/libp2p/go-libp2p-tls v0.1.3/go.mod h1:wZfuewxOndz5RTnCAxFliGjvYSDA40sKitV4c50uI1M=
github.com/libp2p/go-maddr-filter v0.1.0/go.mod h1:VzZhTXkMucEGGEOSKddrwGiOv0tUhgnKqNEmIAz/bPU=
Expand Down
9 changes: 9 additions & 0 deletions libp2p_transport_test.go
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"io"
"testing"

ic "github.com/libp2p/go-libp2p-core/crypto"
Expand Down Expand Up @@ -39,5 +40,13 @@ func TestLibp2pTransportSuite(t *testing.T) {
clientTpt, _, _ := create()
serverTpt, serverID, _ := create()

t.Cleanup(func() {
for _, t := range []tpt.Transport{clientTpt, serverTpt} {
if c, ok := t.(io.Closer); ok {
_ = c.Close()
}
}
})

tptt.SubtestTransport(t, serverTpt, clientTpt, "/ip4/127.0.0.1/udp/0/quic", serverID)
}

0 comments on commit 70c0573

Please sign in to comment.