Skip to content

Commit 34e9263

Browse files
committed
Add missing "await" and perform the correct test for pipe eimpty
1 parent bb07d61 commit 34e9263

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
@@ -120,9 +120,10 @@ async def test_standalone_pipeline(delay, redis_addr):
120120
pipe.get("bar")
121121
pipe.ping()
122122
pipe.get("foo")
123-
pipe.reset()
123+
await pipe.reset()
124124

125-
assert await pipe.execute() is None
125+
# check that the pipeline is empty after reset
126+
assert await pipe.execute() == []
126127

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

0 commit comments

Comments
 (0)