Skip to content

Commit dcad3fe

Browse files
author
Dana Powers
committed
Add mocking to test_coordinator::test_close to fix random test failure (via travis logs)
1 parent 829b037 commit dcad3fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_coordinator.py

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ def test_fetch_committed_offsets(mocker, coordinator):
269269
def test_close(mocker, coordinator):
270270
mocker.patch.object(coordinator, '_maybe_auto_commit_offsets_sync')
271271
mocker.patch.object(coordinator, '_handle_leave_group_response')
272+
mocker.patch.object(coordinator, 'coordinator_unknown', return_value=False)
272273
coordinator.coordinator_id = 0
273274
coordinator.generation = 1
274275
cli = coordinator._client

0 commit comments

Comments
 (0)