Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsmyers committed Jun 25, 2024
2 parents 9cc8411 + 3d73a07 commit 3f3025a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/tests/local_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ async def test_timeout(self):

async def test_client_sharing(self):
"""Test that clients for different systems on the same tty reuse the same core client."""
c1 = await BryantEvolutionLocalClient.get_client(1, 1, "/dev/null")
c2 = await BryantEvolutionLocalClient.get_client(1, 2, "/dev/null")
c3 = await BryantEvolutionLocalClient.get_client(1, 2, "/dev/zero")
(c1, c2, c3) = await asyncio.gather(
BryantEvolutionLocalClient.get_client(1, 1, "/dev/null"),
BryantEvolutionLocalClient.get_client(1, 2, "/dev/null"),
BryantEvolutionLocalClient.get_client(1, 2, "/dev/zero"))
assert c1._client is c2._client
assert c1._client is not c3._client

Expand Down

0 comments on commit 3f3025a

Please sign in to comment.