From 40a6635cd6efdf77691deec73c3194ff9883ddd4 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Thu, 19 Oct 2017 16:23:58 -0400 Subject: [PATCH] Fix testing --- physical/testing.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/physical/testing.go b/physical/testing.go index e6f55cb6f..3ea42c2bb 100644 --- a/physical/testing.go +++ b/physical/testing.go @@ -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)