Skip to content
Snippets Groups Projects
Commit 667d97cd authored by Jan David Mol's avatar Jan David Mol
Browse files

Avoid race conditions

parent 99741ff7
No related branches found
No related tags found
1 merge request!385Do not read attributes in invalid device states
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
from .base import AbstractTestBases from .base import AbstractTestBases
from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy
from tango._tango import DevState from tango._tango import DevState
from tango import DeviceProxy
import time import time
...@@ -59,8 +58,8 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase): ...@@ -59,8 +58,8 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase):
self.proxy.initialise() self.proxy.initialise()
self.proxy.on() self.proxy.on()
devices = [DeviceProxy("STAT/SDP/1"), DeviceProxy("STAT/UNB2/1"), DeviceProxy("STAT/RECV/1"), devices = [TestDeviceProxy("STAT/SDP/1"), TestDeviceProxy("STAT/UNB2/1"), self.recv_proxy,
DeviceProxy("STAT/APSCT/1"), DeviceProxy("STAT/APSPU/1"), DeviceProxy("STAT/PSOC/1")] TestDeviceProxy("STAT/APSCT/1"), TestDeviceProxy("STAT/APSPU/1"), TestDeviceProxy("STAT/PSOC/1")]
# make sure none of the devices are in the OFF state. Any other state is fine # make sure none of the devices are in the OFF state. Any other state is fine
for dev in devices: for dev in devices:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment