Skip to content

Commit 31f3b78

Browse files
committed
Add missing "await" and perform the correct test for pipe eimpty
1 parent d9d2bed commit 31f3b78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_asyncio/test_cwe_404.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ async def test_standalone_pipeline(delay, redis_addr):
117117
pipe.get("bar")
118118
pipe.ping()
119119
pipe.get("foo")
120-
pipe.reset()
120+
await pipe.reset()
121121

122-
assert await pipe.execute() is None
122+
# check that the pipeline is empty after reset
123+
assert await pipe.execute() == []
123124

124125
# validating that the pipeline can be used as it could previously
125126
pipe.get("bar")

0 commit comments

Comments
 (0)