2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

tests: misc fixes, cleanup

This commit is contained in:
Robert Jördens 2016-01-29 17:32:59 -07:00
parent 107e2fedf4
commit d05d720b19
3 changed files with 2 additions and 2 deletions

View File

@ -65,6 +65,5 @@ class ControllerCase(unittest.TestCase):
async def test():
await self.start("lda_sim", entry)
remote = await self.get_client(entry["host"], entry["port"])
await remote.close()
self.loop.run_until_complete(test())

View File

@ -46,6 +46,7 @@ class ControllerCase(unittest.TestCase):
def stop_controller(self, name, default_timeout=1):
entry, proc = self.controllers[name]
t = entry.get("term_timeout", default_timeout)
proc.terminate()
try:
proc.wait(t)
except subprocess.TimeoutExpired:

View File

@ -1,7 +1,7 @@
import unittest
import time
from artiq.devices.thorlabs_tcube.driver import Tdc, Tpz, TdcSim, TpzSim
from artiq.devices.thorlabs_tcube.driver import TdcSim, TpzSim
from artiq.language.units import V
from artiq.test.hardware_testbench import ControllerCase