From 41daaf47b083aeaac734c81ffc2690a032bf6be5 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Mon, 11 Dec 2023 13:33:33 -0800 Subject: [PATCH] tests: fix error expectation Signed-off-by: Maksim An --- pkg/fs/fs_windows_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/fs/fs_windows_test.go b/pkg/fs/fs_windows_test.go index f5e4c6ea..70b09b4c 100644 --- a/pkg/fs/fs_windows_test.go +++ b/pkg/fs/fs_windows_test.go @@ -19,8 +19,8 @@ func TestGetFSTypeOfKnownDrive(t *testing.T) { func TestGetFSTypeOfInvalidPath(t *testing.T) { _, err := GetFileSystemType("7:\\") - if !errors.Is(err, ErrInvalidPath) { - t.Fatalf("Expected `ErrInvalidPath`, got %v", err) + if !errors.Is(err, os.ErrNotExist) { + t.Fatalf("Expected `os.ErrNotExist`, got %v", err) } }