Skip to content

Commit c54833e

Browse files
committed
tests: Adjust test to account for removed ping call
1 parent bb2f030 commit c54833e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/test_semaphore.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ async def test_redis_instructions():
128128
str(await m.connection.read_response()),
129129
# BLPOP
130130
str(await m.connection.read_response()),
131-
# PING - from connection manager
132-
str(await m.connection.read_response()),
133131
# LPUSH
134132
str(await m.connection.read_response()),
135133
# EXPIRE
@@ -150,8 +148,8 @@ async def test_redis_instructions():
150148
assert 'RPUSH' in commands[2]
151149
assert f'__self-limiters:{name}' in commands[2]
152150
assert 'BLPOP' in commands[3]
153-
assert 'LPUSH' in commands[5]
151+
assert 'LPUSH' in commands[4]
152+
assert 'EXPIRE' in commands[5]
153+
assert f'__self-limiters:{name}' in commands[5]
154154
assert 'EXPIRE' in commands[6]
155-
assert f'__self-limiters:{name}' in commands[6]
156-
assert 'EXPIRE' in commands[7]
157-
assert f'__self-limiters:{name}-exists' in commands[7]
155+
assert f'__self-limiters:{name}-exists' in commands[6]

0 commit comments

Comments
 (0)