Skip to content

Commit 1badc54

Browse files
fix more tets
1 parent 5ff5d5c commit 1badc54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/tests/test_stirring.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ def test_stirring_wont_fire_last_100dc_on_od_reading_end() -> None:
191191
bucket = []
192192

193193
def collect(msg):
194-
pl = json.loads(msg.payload.decode())
195-
if pl:
196-
bucket.append(pl)
194+
payload = msg.payload.decode()
195+
if payload and json.loads(payload):
196+
bucket.append(json.loads(payload))
197197

198198
with start_stirring(
199199
target_rpm=500,

0 commit comments

Comments
 (0)