Skip to content

Commit

Permalink
Skip tests that are failing on Wiindows 2019/2022
Browse files Browse the repository at this point in the history
See #172
  • Loading branch information
v1v committed Aug 7, 2023
1 parent 63b9e04 commit 7621da3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sys/windows/syscall_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func TestEnumProcesses(t *testing.T) {
}

func TestGetDiskFreeSpaceEx(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("test is not running on latest windows versions. See https://github.com/elastic/gosigar/issues/172")
return
}
drives, err := GetLogicalDriveStrings()
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -393,6 +397,10 @@ func TestGetVolumes(t *testing.T) {
}

func TestGetVolumePathsForVolume(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("test is not running on latest windows versions. See https://github.com/elastic/gosigar/issues/172")
return
}
volumes, err := GetVolumes()
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 7621da3

Please sign in to comment.