Skip to content

Commit

Permalink
test_pause_queue: sleep for 1s, not 10s
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Aug 9, 2024
1 parent c578dff commit cab8d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddles/tests/controllers/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def test_pause_queue(self):
response = self.app.put_json('/queue/', dict(
queue="test_queue3",
paused_by="tester",
pause_duration=10,
pause_duration=1,
))
assert response.status_code == 200
response = self.app.get('/queue/?machine_type=test_queue3')
assert response.json[0]['paused'] is True
time.sleep(10)
time.sleep(1)
response = self.app.get('/queue/?machine_type=test_queue3')
assert response.json[0]['paused'] is False

Expand Down

0 comments on commit cab8d3f

Please sign in to comment.