Skip to content

Commit

Permalink
fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
idocx committed May 6, 2024
1 parent 3d5834e commit 9b31dbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/fake_lab/tasks/infinite_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ def __init__(self, samples: list[ObjectId], *args, **kwargs):
self.sample = samples[0]

def run(self):
with self.lab_view.request_resources({DeviceThatNeverEnds: {"infinite_loop": 1}}) as (device_that_fails, _):
device_that_fails.run_infinite()
with self.lab_view.request_resources({DeviceThatNeverEnds: {"infinite_loop": 1}}) as (devices, _):
device_that_never_ends = devices[DeviceThatNeverEnds]
device_that_never_ends.run_infinite()

0 comments on commit 9b31dbb

Please sign in to comment.