From eaac0fca386cfc8354266e93d4d8e4dc915267c3 Mon Sep 17 00:00:00 2001 From: redwrasse Date: Fri, 27 Sep 2024 22:38:59 -0700 Subject: [PATCH] fix wal_test errors.Is args order Signed-off-by: redwrasse --- server/storage/wal/wal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/storage/wal/wal_test.go b/server/storage/wal/wal_test.go index 1f68c05aa859..bd5409a51772 100644 --- a/server/storage/wal/wal_test.go +++ b/server/storage/wal/wal_test.go @@ -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) } }()