From 667d97cdf2c828e578451e3e211bcd2a9718b98a Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Wed, 27 Jul 2022 14:04:56 +0200
Subject: [PATCH] Avoid race conditions

---
 .../default/devices/test_device_temperature_manager.py       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py
index 7944ac743..4ba379bb1 100644
--- a/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py
+++ b/tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_device_temperature_manager.py
@@ -9,7 +9,6 @@
 from .base import AbstractTestBases
 from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy
 from tango._tango import DevState
-from tango import DeviceProxy
 
 import time
 
@@ -59,8 +58,8 @@ class TestDeviceTemperatureManager(AbstractTestBases.TestDeviceBase):
         self.proxy.initialise()
         self.proxy.on()
 
-        devices = [DeviceProxy("STAT/SDP/1"), DeviceProxy("STAT/UNB2/1"), DeviceProxy("STAT/RECV/1"),
-                   DeviceProxy("STAT/APSCT/1"), DeviceProxy("STAT/APSPU/1"), DeviceProxy("STAT/PSOC/1")]
+        devices = [TestDeviceProxy("STAT/SDP/1"), TestDeviceProxy("STAT/UNB2/1"), self.recv_proxy,
+                   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
         for dev in devices:
-- 
GitLab