Skip to content

Commit

Permalink
check err
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Dec 9, 2024
1 parent b4dad36 commit e602c9e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/verifier/compare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ func (s *IntegrationTestSuite) TestFetchAndCompareDocuments_Context() {

var done atomic.Bool
go func() {
verifier.FetchAndCompareDocuments(
_, _, _, err := verifier.FetchAndCompareDocuments(
cancelableCtx,
&task,
)
if err != nil {
s.Assert().ErrorIs(
err,
context.Canceled,
"only failure should be context cancellation",
)
}
done.Store(true)
}()

Expand Down

0 comments on commit e602c9e

Please sign in to comment.