basichost / blankhost: wrap errors (#2331)

This commit is contained in:
Hlib Kanunnikov
2023-06-27 20:21:32 +02:00
committed by GitHub
parent f1236d84de
commit e5334ed296
3 changed files with 12 additions and 9 deletions

View File

@@ -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")