Skip to content

Commit

Permalink
fixup! Testing: Add FixtureToDataHandlerWithErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Feb 19, 2025
1 parent 53425ab commit f3b305e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/testing/exchange/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func FixtureToDataHandlerWithErrors(tb testing.TB, fixturePath string, reader fu
tb.Helper()

fixture, err := os.Open(fixturePath)
require.NoError(tb, err, "Opening fixture '%s' should not error", fixturePath)
require.NoError(tb, err, "Opening fixture '%s' must not error", fixturePath)
defer func() {
assert.NoError(tb, fixture.Close(), "Closing the fixture file should not error")
}()
Expand Down

0 comments on commit f3b305e

Please sign in to comment.