Skip to content

Commit d59b12f

Browse files
middleware/prefix: Unflake the tests
1 parent 8156e7e commit d59b12f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

middleware/prefix/executor_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package prefix_test
22

33
import (
44
"context"
5+
"sort"
56
"testing"
67

78
"github.com/stretchr/testify/assert"
@@ -46,6 +47,8 @@ func TestIntegration(t *testing.T) {
4647
keys = nil
4748
err = db.Do(ctx, "KEYS", "*").Scan(&keys)
4849
require.NoError(t, err)
50+
51+
sort.Strings(keys)
4952
assert.Equal(t, []string{"buz", "foobar:buz"}, keys)
5053

5154
err = prefixedDB.Do(ctx, "FLUSHDB").Scan()

0 commit comments

Comments
 (0)