Skip to content

Commit c64b760

Browse files
committed
address review comments
1 parent 28724e2 commit c64b760

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/parallelisation/contextual_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestDetermineContextError(t *testing.T) {
6363
require.NoError(t, DetermineContextError(ctx))
6464
cancel()
6565
err := DetermineContextError(ctx)
66-
errortest.AssertError(t, err, commonerrors.ErrTimeout, commonerrors.ErrCancelled)
66+
errortest.AssertError(t, err, commonerrors.ErrCancelled)
6767
})
6868
t.Run("cancellation with cause", func(t *testing.T) {
6969
cause := errors.New("a cause")
@@ -72,7 +72,7 @@ func TestDetermineContextError(t *testing.T) {
7272
require.NoError(t, DetermineContextError(ctx))
7373
cancel(cause)
7474
err := DetermineContextError(ctx)
75-
errortest.AssertError(t, err, commonerrors.ErrTimeout, commonerrors.ErrCancelled)
75+
errortest.AssertError(t, err, commonerrors.ErrCancelled)
7676
errortest.AssertErrorDescription(t, err, cause.Error())
7777
})
7878
t.Run("cancellation with timeout cause", func(t *testing.T) {
@@ -82,7 +82,7 @@ func TestDetermineContextError(t *testing.T) {
8282
require.NoError(t, DetermineContextError(ctx))
8383
cancel()
8484
err := DetermineContextError(ctx)
85-
errortest.RequireError(t, err, commonerrors.ErrTimeout, commonerrors.ErrCancelled)
85+
errortest.RequireError(t, err, commonerrors.ErrCancelled)
8686
assert.NotContains(t, err.Error(), cause.Error()) // the timeout did not take effect and a cancellation was performed instead so the cause is not passed through
8787
})
8888
}

0 commit comments

Comments
 (0)