Skip to content

Commit

Permalink
tests: misc fixes, cleanup
Browse files Browse the repository at this point in the history
jordens committed Jan 30, 2016
1 parent 107e2fe commit d05d720
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion artiq/test/ctlmgr.py
Original file line number Diff line number Diff line change
@@ -65,6 +65,5 @@ def test_start_ping_stop_controller(self):
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())
1 change: 1 addition & 0 deletions artiq/test/hardware_testbench.py
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@ def start_controller(self, name, sleep=1):
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:
2 changes: 1 addition & 1 deletion artiq/test/thorlabs_tcube.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d05d720

Please sign in to comment.