Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: using t.TempDir() replace os.MkdirTemp in testfile #3222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

argentpapa
Copy link

logs:

➜  go-libp2p git:(master) ✗ go test -v ./p2p/transport/quicreuse/  -run '' 

=== RUN   TestListenOnSameProto
=== RUN   TestListenOnSameProto/with_reuseport
=== RUN   TestListenOnSameProto/without_reuseport
--- PASS: TestListenOnSameProto (0.02s)
    --- PASS: TestListenOnSameProto/with_reuseport (0.01s)
    --- PASS: TestListenOnSameProto/without_reuseport (0.01s)
=== RUN   TestConnectionPassedToQUICForListening
--- PASS: TestConnectionPassedToQUICForListening (0.00s)
=== RUN   TestAcceptErrorGetCleanedUp
    connmgr_test.go:113: num goroutines: 7
    connmgr_test.go:127: num goroutines: 7
--- PASS: TestAcceptErrorGetCleanedUp (0.00s)
=== RUN   TestConnectionPassedToQUICForDialing
--- PASS: TestConnectionPassedToQUICForDialing (0.00s)
=== RUN   TestListener
=== RUN   TestListener/with_reuseport
=== RUN   TestListener/without_reuseport
--- PASS: TestListener (0.04s)
    --- PASS: TestListener/with_reuseport (0.02s)
    --- PASS: TestListener/without_reuseport (0.02s)
=== RUN   TestExternalTransport
--- PASS: TestExternalTransport (0.02s)
=== RUN   TestConvertToQuicMultiaddr
--- PASS: TestConvertToQuicMultiaddr (0.00s)
=== RUN   TestConvertToQuicV1Multiaddr
--- PASS: TestConvertToQuicV1Multiaddr (0.00s)
=== RUN   TestConvertFromQuicV1Multiaddr
--- PASS: TestConvertFromQuicV1Multiaddr (0.00s)
=== RUN   TestReuseListenOnAllIPv4
--- PASS: TestReuseListenOnAllIPv4 (0.05s)
=== RUN   TestReuseListenOnAllIPv6
--- PASS: TestReuseListenOnAllIPv6 (0.05s)
=== RUN   TestReuseCreateNewGlobalConnOnDial
--- PASS: TestReuseCreateNewGlobalConnOnDial (0.00s)
=== RUN   TestReuseConnectionWhenDialing
--- PASS: TestReuseConnectionWhenDialing (0.00s)
=== RUN   TestReuseConnectionWhenListening
--- PASS: TestReuseConnectionWhenListening (0.00s)
=== RUN   TestReuseConnectionWhenDialBeforeListen
--- PASS: TestReuseConnectionWhenDialBeforeListen (0.00s)
=== RUN   TestReuseListenOnSpecificInterface
    reuse_test.go:167: this test only works on platforms that support routing tables
--- SKIP: TestReuseListenOnSpecificInterface (0.00s)
=== RUN   TestReuseGarbageCollect
--- PASS: TestReuseGarbageCollect (0.15s)
=== RUN   TestSaveQlog
--- PASS: TestSaveQlog (0.00s)
=== RUN   TestQlogBuffering
    tracer_test.go:51: initial log file size: 0, final log file size: 19
--- PASS: TestQlogBuffering (0.00s)
=== RUN   TestQlogCompression
--- PASS: TestQlogCompression (0.00s)
PASS
ok      github.com/libp2p/go-libp2p/p2p/transport/quicreuse     0.356s

Copy link
Member

@sukunrt sukunrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@argentpapa
Copy link
Author

Thanks!
you are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants