Fix testing

This commit is contained in:
Jeff Mitchell 2017-10-19 16:23:58 -04:00
parent e122853746
commit 40a6635cd6

View file

@ -217,9 +217,14 @@ func ExerciseBackend(t *testing.T, b Backend) {
if err != nil {
t.Fatal(err)
}
if len(vals) != 2 || vals[0] != "_zip/" || vals[1] != "_zip" {
if len(vals) != 2 || vals[0] == vals[1] {
t.Fatalf("bad: %v", vals)
}
for _, val := range vals {
if val != "_zip/" || val != "_zip" {
t.Fatalf("bad val: %v", val)
}
}
vals, err = b.List("_zip/")
if err != nil {
t.Fatal(err)