Skip to content

Commit

Permalink
Simplify tests thanks to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Mar 29, 2023
1 parent 45f3b60 commit b0876be
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/legacy/test_client_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,7 @@ def send(self, *args, **kwargs):
self.assertFalse(client_socket.used_for_read)
self.assertFalse(client_socket.used_for_write)

with self.temp_client(
sock=client_socket,
# "You must set server_hostname when using ssl without a host"
server_hostname="localhost" if self.secure else None,
):
with self.temp_client(sock=client_socket):
self.loop.run_until_complete(self.client.send("Hello!"))
reply = self.loop.run_until_complete(self.client.recv())
self.assertEqual(reply, "Hello!")
Expand Down

0 comments on commit b0876be

Please sign in to comment.