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

add constructor options for timeout, stop using transport.DialTimeout #302

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

marten-seemann
Copy link
Contributor

No description provided.

@@ -161,8 +156,9 @@ func newSilentPeer(t *testing.T) (peer.ID, ma.Multiaddr, net.Listener) {
func TestDialWait(t *testing.T) {
t.Parallel()

ctx := context.Background()
Copy link
Contributor

Choose a reason for hiding this comment

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

again here, why are we deopping this context?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it didn't do anything, it's a context.Background().

Copy link
Contributor

Choose a reason for hiding this comment

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

ok.

Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

how will this option get propagated?

@marten-seemann
Copy link
Contributor Author

Like this: libp2p/go-libp2p#1271

Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

ok, looks good.

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

Successfully merging this pull request may close these issues.

2 participants