Skip to content

Commit 8dade7b

Browse files
authored
test: fix a race condition in the controller unit tests (aws-deadline#1031)
Signed-off-by: Justin Sawatzky <132946620+justinsaws@users.noreply.github.com>
1 parent 77727a5 commit 8dade7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/deadline_client/ui/controllers/test_deadline_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def test_refresh_farms_handles_error(self, mock_api, qtbot):
153153
controller.refresh_farms()
154154

155155
qtbot.waitUntil(lambda: len(farms_received) > 0, timeout=2000)
156+
qtbot.waitUntil(lambda: len(errors_received) > 0, timeout=2000)
156157

157158
# Should emit empty list on error
158159
assert farms_received[0] == []

0 commit comments

Comments
 (0)