Skip to content

Commit e602c9e

Browse files
committed
check err
1 parent b4dad36 commit e602c9e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/verifier/compare_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,17 @@ func (s *IntegrationTestSuite) TestFetchAndCompareDocuments_Context() {
5555

5656
var done atomic.Bool
5757
go func() {
58-
verifier.FetchAndCompareDocuments(
58+
_, _, _, err := verifier.FetchAndCompareDocuments(
5959
cancelableCtx,
6060
&task,
6161
)
62+
if err != nil {
63+
s.Assert().ErrorIs(
64+
err,
65+
context.Canceled,
66+
"only failure should be context cancellation",
67+
)
68+
}
6269
done.Store(true)
6370
}()
6471

0 commit comments

Comments
 (0)