Skip to content

Commit

Permalink
Fix flakey thorlabs test (#379)
Browse files Browse the repository at this point in the history
* Fix flakey thorlabs test

* Move fix into test and out of driver
  • Loading branch information
Gracecr committed Nov 3, 2022
1 parent bf4e131 commit 891f875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_thorlabs/test_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ def test_query_packet_no_response_with_timeout(mocker):
time_spy = mocker.spy(time, "time")
assert inst.querypacket(example_packet, timeout=0) is None
# timeout set to zero, assert `time.time()` called twice
assert time_spy.call_count == 2
assert time_spy.call_count >= 2

0 comments on commit 891f875

Please sign in to comment.