physical: more sorting to make tests deterministic

This commit is contained in:
Mitchell Hashimoto 2015-04-28 19:01:01 -07:00
parent 97285af6b8
commit e9621cdfe3

View file

@ -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)
}