Skip to content

Commit 1816f36

Browse files
committed
fix: skip TestEnsureKerberosCacheConcurrent on non-Linux platforms
ensureKerberosCache relies on Linux-specific CIFS/Kerberos semantics (os.Chown with cruid as gid, symlink handling). Restrict the test to Linux only to avoid failures on macOS and Windows CI runners.
1 parent 757de63 commit 1816f36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/smb/nodeserver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ func TestGetKerberosCache(t *testing.T) {
987987
// per-CRUID lock and asserts no caller observes a "file exists" from Symlink
988988
// and that the final symlink points at a valid volume-specific cache file.
989989
func TestEnsureKerberosCacheConcurrent(t *testing.T) {
990-
if runtime.GOOS == "windows" {
990+
if runtime.GOOS != "linux" {
991991
t.Skip("ensureKerberosCache is only used on Linux")
992992
}
993993

0 commit comments

Comments
 (0)