mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
TestIoHandler should not run on unsupported platforms
Fix for failing test on darwin/osx. Skip the test on unsupported (non-windows and non-linux) platforms.
This commit is contained in:
parent
02f48b6846
commit
d0892dfb5d
@ -119,6 +119,9 @@ func (handler *fakeIOHandler) ReadFile(filename string) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestIoHandler(t *testing.T) {
|
func TestIoHandler(t *testing.T) {
|
||||||
|
if runtime.GOOS != "windows" && runtime.GOOS != "linux" {
|
||||||
|
t.Skipf("TestIoHandler not supported on GOOS=%s", runtime.GOOS)
|
||||||
|
}
|
||||||
disk, err := findDiskByLun(lun, &fakeIOHandler{}, mount.NewOsExec())
|
disk, err := findDiskByLun(lun, &fakeIOHandler{}, mount.NewOsExec())
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user