mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-17 13:40:49 +08:00
basichost / blankhost: wrap errors (#2331)
This commit is contained in:
@@ -739,7 +739,7 @@ func TestNegotiationCancel(t *testing.T) {
|
||||
|
||||
select {
|
||||
case err := <-errCh:
|
||||
require.Equal(t, err, context.Canceled)
|
||||
require.ErrorIs(t, err, context.Canceled)
|
||||
case <-time.After(500 * time.Millisecond):
|
||||
// failed to cancel
|
||||
t.Fatal("expected negotiation to be canceled")
|
||||
|
Reference in New Issue
Block a user