Skip to content

Commit

Permalink
fix TestGetFSTypeOfInvalidPath
Browse files Browse the repository at this point in the history
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
  • Loading branch information
kiashok committed May 21, 2024
1 parent dfcb4dd commit bea17c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/fs/fs_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ func TestGetFSTypeOfKnownDrive(t *testing.T) {
}

func TestGetFSTypeOfInvalidPath(t *testing.T) {
_, err := GetFileSystemType("7:\\")
// [filepath.VolumeName] doesn't mandate that the drive letters matches [a-zA-Z].
// Instead, use non-character drive.
_, err := GetFileSystemType(`No:\`)
if err != ErrInvalidPath {
t.Fatalf("Expected `ErrInvalidPath`, got %v", err)
}
Expand Down

0 comments on commit bea17c3

Please sign in to comment.