From b59caf1bf484a148c32ef7adf71d4cdd06a5e9f0 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Thu, 15 Feb 2024 13:50:32 +0000 Subject: [PATCH] test: fix windows ut failure --- pkg/csi-common/utils_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/csi-common/utils_test.go b/pkg/csi-common/utils_test.go index 122537b99a..1feca4d275 100644 --- a/pkg/csi-common/utils_test.go +++ b/pkg/csi-common/utils_test.go @@ -21,6 +21,7 @@ import ( "context" "flag" "os" + "runtime" "testing" "github.com/container-storage-interface/spec/lib/go/csi" @@ -235,6 +236,10 @@ func TestGetLogLevel(t *testing.T) { } func TestListen(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Skip test on Windows") + } + tests := []struct { name string endpoint string