From b1f8d11e4e1f8b1806d693158cccefb2d135ec06 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Mon, 27 Mar 2023 17:36:43 -0700 Subject: [PATCH] Fix windows flake (#3650) * fix windows flake * format backend --------- Co-authored-by: Freddy Boulton --- test/test_blocks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_blocks.py b/test/test_blocks.py index af5b3d89d6..4c761ae028 100644 --- a/test/test_blocks.py +++ b/test/test_blocks.py @@ -1280,7 +1280,10 @@ class TestProgressBar: if msg["msg"] == "send_hash": await ws.send(json.dumps({"fn_index": 0, "session_hash": "shdce"})) if msg["msg"] == "progress": - progress_updates.append(msg["progress_data"]) + if msg[ + "progress_data" + ]: # Ignore empty lists which sometimes appear on Windows + progress_updates.append(msg["progress_data"]) if msg["msg"] == "process_completed": completed = True break