Skip to content

Commit

Permalink
Test async terminate via Spur
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Feb 16, 2015
1 parent 1074fcf commit ac8f705
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,14 @@ def test_kill(self):
engine.kill()
self.assertFalse(engine.is_alive())

def test_async_terminate(self):
shell = spur.LocalShell()
engine = chess.uci.spur_spawn_engine(shell, ["/usr/games/stockfish"])

command = engine.terminate(async=True)
command.wait()
self.assertTrue(command.is_done())


class UciEngineTestCase(unittest.TestCase):

Expand Down

0 comments on commit ac8f705

Please sign in to comment.