Skip to content

Commit

Permalink
reformatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsandemir committed Jan 3, 2024
1 parent f32c630 commit 1b1a87c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/discovery/hazelcast_cloud_discovery_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ class Server:

def __init__(self):
self.server = HTTPServer((HOST, 0), CloudHTTPHandler)
self.server.socket = ssl.wrap_socket(
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
ssl_context.load_cert_chain("cert.pem", "key.pem")
self.server.socket = ssl_context.wrap_socket(
self.server.socket,
get_abs_path(self.cur_dir, "key.pem"),
get_abs_path(self.cur_dir, "cert.pem"),
server_side=True,
)
self.port = self.server.socket.getsockname()[1]
Expand Down

0 comments on commit 1b1a87c

Please sign in to comment.