physical: more sorting to make tests deterministic
This commit is contained in:
parent
97285af6b8
commit
e9621cdfe3
|
@ -127,6 +127,7 @@ func testBackend_ListPrefix(t *testing.T, b Backend) {
|
|||
if len(keys) != 2 {
|
||||
t.Fatalf("bad: %v", keys)
|
||||
}
|
||||
sort.Strings(keys)
|
||||
if keys[0] != "foo" {
|
||||
t.Fatalf("bad: %v", keys)
|
||||
}
|
||||
|
@ -155,6 +156,7 @@ func testBackend_ListPrefix(t *testing.T, b Backend) {
|
|||
if err != nil {
|
||||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
sort.Strings(keys)
|
||||
if len(keys) != 1 {
|
||||
t.Fatalf("bad: %v", keys)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue