Fix fs tests to avoid deleting /usr to certain systems.

master
Harshavardhana 8 years ago
parent c194b9f5f1
commit 09b450d610
  1. 7
      cmd/fs-v1-helpers_test.go

@ -18,7 +18,6 @@ package cmd
import ( import (
"bytes" "bytes"
"runtime"
"testing" "testing"
) )
@ -396,10 +395,4 @@ func TestFSRemoves(t *testing.T) {
if err = fsRemoveAll("my-obj-del-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"); err != errFileNameTooLong { if err = fsRemoveAll("my-obj-del-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"); err != errFileNameTooLong {
t.Fatal(err) t.Fatal(err)
} }
if runtime.GOOS != "windows" {
if err = fsRemoveAll("/usr"); err != errVolumeAccessDenied {
t.Fatal(err)
}
}
} }

Loading…
Cancel
Save