Skip to content

Commit

Permalink
refactor:use different db
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Dec 3, 2023
1 parent 2819398 commit 277097c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_mixins/test_server_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@


def test_swapdb(r, create_redis):
r1 = create_redis(2)
r1 = create_redis(3)
r.set('foo', 'abc')
r.set('bar', 'xyz')
r1.set('foo', 'foo')
r1.set('baz', 'baz')
assert r.swapdb(0, 1)
assert r.swapdb(2, 3)
assert r.get('foo') == b'foo'
assert r.get('bar') is None
assert r.get('baz') == b'baz'
Expand Down

0 comments on commit 277097c

Please sign in to comment.