Commit 3e9f7504 authored by Marco Buttu's avatar Marco Buttu
Browse files

closeScan() does not raise an exception in case no scan is active

parent aa343ee0
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -339,9 +339,8 @@ class ScanInterfaceTest(ScanBaseTest):
            t = self.boss.checkScan(0, self.scan, self.antennaInfo) 

    def test_closeScan_scan_not_active(self):
        """Raise a MinorServoErrorsEx in case no scan is active"""
        with self.assertRaises(MinorServoErrorsEx):
            time_to_stop = self.boss.closeScan() 
        """Do nothing in case no scan is active"""
        self.boss.closeScan() 


if __name__ == '__main__':