Manager: skip shaman permission unit test on Windows
The test was made with umask on UNIX-like systems in mind. It doesn't make much sense on Windows, at least not in its current form, so it's better to just explicitly skip it.
This commit is contained in:
parent
1b11233c92
commit
88fe62ddef
@ -25,6 +25,7 @@ package filestore
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@ -55,6 +56,10 @@ func TestContains(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFilePermissions(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Logf("Skipping permission test on %s, as it was designed for umask/UNIX", runtime.GOOS)
|
||||
t.SkipNow()
|
||||
}
|
||||
dirname, err := os.MkdirTemp("", "file-permission-test")
|
||||
assert.NoError(t, err)
|
||||
defer os.RemoveAll(dirname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user