Fix testing
This commit is contained in:
parent
e122853746
commit
40a6635cd6
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue