Skip to content

Commit

Permalink
Add delay to test
Browse files Browse the repository at this point in the history
  • Loading branch information
slacrherbst committed Oct 7, 2021
1 parent 02cbe3b commit 7afe110
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_epics.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ def test_local_root():

# Test list method
root.epics.list()
time.sleep(1)

# Test RW a variable holding an scalar value
pv_name=device_epics_prefix+':var'
test_value=314
caput(pv_name, test_value)
time.sleep(1)
test_result=caget(pv_name)
if test_result != test_value:
raise AssertionError('pv_name={}: test_value={}; test_result={}'.format(\
Expand All @@ -93,6 +95,7 @@ def test_local_root():
pv_name=device_epics_prefix+':var_float'
test_value=5.67
caput(pv_name, test_value)
time.sleep(1)
test_result=round(caget(pv_name),2)
if test_result != test_value:
raise AssertionError('pv_name={}: test_value={}; test_result={}'.format(\
Expand Down

0 comments on commit 7afe110

Please sign in to comment.