Skip to content

Commit

Permalink
fix one test
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe committed Aug 1, 2024
1 parent c5a5217 commit 31677bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_StfClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_allocation_context_first_success(self):
@patch('time.sleep', side_effect=MagicMock())
def test_allocation_context_wait_success(self, mock_sleep):
dev1 = {'serial': '123', 'present': True, 'ready': True, 'using': False, 'owner': None, 'status': 3}
self.client.get_devices = MagicMock(side_effect=[[], [dev1]])
self.client.get_devices = MagicMock(side_effect=[[dev1], [], [dev1]])
url = '123'

with self.client.allocation_context({"serial": '123'}) as device:
Expand Down

0 comments on commit 31677bf

Please sign in to comment.