Skip to content

Commit 3e4babd

Browse files
committed
Make tests more permissive for CI
1 parent e8913db commit 3e4babd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/test_asyncio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ async def test_asyncio_ioc(asyncio_ioc):
3838
atexit.unregister(_catools._catools_atexit)
3939

4040
# Start
41-
assert await caget(PV_PREFIX + ":UPTIME") in [
42-
"00:00:00", "00:00:01", "00:00:02", "00:00:03"
43-
]
41+
assert (await caget(PV_PREFIX + ":UPTIME")).startswith("00:00:0")
4442
# WAVEFORM
4543
await caput(PV_PREFIX + ":SINN", 4, wait=True)
4644
q = asyncio.Queue()

tests/test_cothread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_cothread_ioc(cothread_ioc):
3636
from cothread.catools import ca_nothing, caget, caput, camonitor
3737

3838
# Start
39-
assert caget(PV_PREFIX + ":UPTIME") in ["00:00:00", "00:00:01"]
39+
assert caget(PV_PREFIX + ":UPTIME").startswith("00:00:0")
4040
# WAVEFORM
4141
caput(PV_PREFIX + ":SINN", 4, wait=True)
4242
q = cothread.EventQueue()

0 commit comments

Comments
 (0)