Skip to content

Commit

Permalink
middleware/prefix: Unflake the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisMontagne committed Jul 29, 2024
1 parent 8156e7e commit d59b12f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions middleware/prefix/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package prefix_test

import (
"context"
"sort"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -46,6 +47,8 @@ func TestIntegration(t *testing.T) {
keys = nil
err = db.Do(ctx, "KEYS", "*").Scan(&keys)
require.NoError(t, err)

sort.Strings(keys)
assert.Equal(t, []string{"buz", "foobar:buz"}, keys)

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

0 comments on commit d59b12f

Please sign in to comment.