This commit is contained in:
@@ -12,6 +12,7 @@ from datetime import datetime, timedelta
|
||||
from slic.utils.hastyepics import get_pv
|
||||
from epics.pv import _PVcache_
|
||||
from slic.utils.pv import PV
|
||||
import epics
|
||||
|
||||
|
||||
import sys
|
||||
@@ -174,8 +175,15 @@ def test_offload(tmp_path, caplog):
|
||||
pvname_4 = "TEST:PV4"
|
||||
|
||||
# Create 2 PVs
|
||||
get_pv(pvname_3)
|
||||
get_pv(pvname_4)
|
||||
pv_3 = PV(pvname_3, connection_timeout=2.0)
|
||||
get_pv(pv_3)
|
||||
assert pv_3.wait_for_connection(timeout=2.0), "PV not connected"
|
||||
|
||||
pv_4 = PV(pvname_4, connection_timeout=2.0)
|
||||
get_pv(pv_4)
|
||||
assert pv_4.wait_for_connection(timeout=2.0), "PV not connected"
|
||||
|
||||
print(epics.pv._PVcache_.values())
|
||||
|
||||
assert is_pv_in_cache(pvname_3)
|
||||
assert is_pv_in_cache(pvname_4)
|
||||
|
||||
Reference in New Issue
Block a user