mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-14 04:13:56 +08:00
Bump timeout
This commit is contained in:
@@ -716,7 +716,7 @@ func TestNegotiationCancel(t *testing.T) {
|
|||||||
select {
|
select {
|
||||||
case err := <-errCh:
|
case err := <-errCh:
|
||||||
require.Equal(t, err, context.Canceled)
|
require.Equal(t, err, context.Canceled)
|
||||||
case <-time.After(500 * time.Millisecond):
|
case <-time.After(5 * time.Second):
|
||||||
// failed to cancel
|
// failed to cancel
|
||||||
t.Fatal("expected negotiation to be canceled")
|
t.Fatal("expected negotiation to be canceled")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user