windows: make tests work properly

This commit is contained in:
Nick Craig-Wood
2015-02-07 22:32:51 +00:00
parent 20ad96f3cd
commit b4e19cfd62
2 changed files with 26 additions and 20 deletions
+3
View File
@@ -9,6 +9,7 @@ import (
"log"
"math/rand"
"os"
"path/filepath"
"strings"
"testing"
"time"
@@ -80,6 +81,7 @@ func (is *Items) Find(t *testing.T, obj fs.Object, precision time.Duration) {
i, ok := is.byName[obj.Remote()]
if !ok {
t.Errorf("Unexpected file %q", obj.Remote())
return
}
delete(is.byName, obj.Remote())
i.Check(t, obj, precision)
@@ -140,6 +142,7 @@ func LocalRemote() (path string, err error) {
// Now remove the directory
err = os.Remove(path)
}
path = filepath.ToSlash(path)
return
}