Skip to content

Commit

Permalink
SimpleServer: nicer server shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tcalmant committed Dec 9, 2018
1 parent 1d365f3 commit 419b205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ def test_default_pool(self, pool=None):
client = ServerProxy("http://localhost:{0}".format(port))

# Check calls
for _ in range(10):
for _ in range(5):
a, b = random.random(), random.random()
result = client.add(a, b)
self.assertEqual(result, a+b)

# Close server
server.shutdown()
server.server_close()
thread.join()

Expand Down

0 comments on commit 419b205

Please sign in to comment.