Loading csp-lmc-mid/tests/integration/MidCspMaster_test.py +17 −1 Original line number Original line Diff line number Diff line Loading @@ -91,7 +91,23 @@ class TestCspMaster(TestBase): assert self.midcsp_master.state() == DevState.ON assert self.midcsp_master.state() == DevState.ON argin = ["mid_csp_cbf/sub_elt/master",] argin = ["mid_csp_cbf/sub_elt/master",] self.midcsp_master.Standby(argin) self.midcsp_master.Standby(argin) prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY") prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY") Poller(4, 0.2).check(prober_state) def test_issue_Standby_AFTER_On_command(self): """ Issue the Standby command just after the On command, without waiting on the State value. To solve SKB-26 bug, the power commands are now executed in synch way. """ self._setup_master() argin = ["mid_csp_cbf/sub_elt/master",] self.midcsp_master.On(argin) self.midcsp_master.Standby(argin) prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY") Poller(4, 0.2).check(prober_state) Poller(4, 0.2).check(prober_state) ''' ''' Loading Loading
csp-lmc-mid/tests/integration/MidCspMaster_test.py +17 −1 Original line number Original line Diff line number Diff line Loading @@ -91,7 +91,23 @@ class TestCspMaster(TestBase): assert self.midcsp_master.state() == DevState.ON assert self.midcsp_master.state() == DevState.ON argin = ["mid_csp_cbf/sub_elt/master",] argin = ["mid_csp_cbf/sub_elt/master",] self.midcsp_master.Standby(argin) self.midcsp_master.Standby(argin) prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY") prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY") Poller(4, 0.2).check(prober_state) def test_issue_Standby_AFTER_On_command(self): """ Issue the Standby command just after the On command, without waiting on the State value. To solve SKB-26 bug, the power commands are now executed in synch way. """ self._setup_master() argin = ["mid_csp_cbf/sub_elt/master",] self.midcsp_master.On(argin) self.midcsp_master.Standby(argin) prober_state = Probe(self.midcsp_master, "State", DevState.STANDBY, f"CSP Master not STANDBY") Poller(4, 0.2).check(prober_state) Poller(4, 0.2).check(prober_state) ''' ''' Loading