mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Remove go1.9 specific code for windows (#5033)
Following fix https://go-review.googlesource.com/#/c/41834/ has been merged upstream and released with go1.9.
This commit is contained in:
committed by
Nitish Tiwari
parent
ad53c5d859
commit
3d0dced23c
@@ -21,8 +21,6 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"testing"
|
||||
|
||||
os2 "github.com/minio/minio/pkg/x/os"
|
||||
)
|
||||
|
||||
type MySuite struct {
|
||||
@@ -54,7 +52,7 @@ func TestSafeAbort(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "testfile-abort"))
|
||||
_, err = os.Stat(path.Join(s.root, "testfile-abort"))
|
||||
if !os.IsNotExist(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -80,7 +78,7 @@ func TestSafeClose(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "testfile-close"))
|
||||
_, err = os.Stat(path.Join(s.root, "testfile-close"))
|
||||
if !os.IsNotExist(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -90,7 +88,7 @@ func TestSafeClose(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "testfile-close"))
|
||||
_, err = os.Stat(path.Join(s.root, "testfile-close"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -118,7 +116,7 @@ func TestSafe(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "testfile-safe"))
|
||||
_, err = os.Stat(path.Join(s.root, "testfile-safe"))
|
||||
if !os.IsNotExist(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -142,7 +140,7 @@ func TestSafe(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "testfile-safe"))
|
||||
_, err = os.Stat(path.Join(s.root, "testfile-safe"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -163,7 +161,7 @@ func TestSafeAbortWrite(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "purgefile-abort"))
|
||||
_, err = os.Stat(path.Join(s.root, "purgefile-abort"))
|
||||
if !os.IsNotExist(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -173,7 +171,7 @@ func TestSafeAbortWrite(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, err = os2.Stat(path.Join(s.root, "purgefile-abort"))
|
||||
_, err = os.Stat(path.Join(s.root, "purgefile-abort"))
|
||||
if !os.IsNotExist(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user