Skip to content

Commit

Permalink
fix wal_test errors.Is args order
Browse files Browse the repository at this point in the history
Signed-off-by: redwrasse <[email protected]>
  • Loading branch information
redwrasse committed Sep 28, 2024
1 parent 46fbf43 commit eaac0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/storage/wal/wal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ func TestOpenOnTornWrite(t *testing.T) {
p := t.TempDir()
w, err := Create(zaptest.NewLogger(t), p, nil)
defer func() {
if err = w.Close(); err != nil && !errors.Is(os.ErrInvalid, err) {
if err = w.Close(); err != nil && !errors.Is(err, os.ErrInvalid) {
t.Fatal(err)
}
}()
Expand Down

0 comments on commit eaac0fc

Please sign in to comment.