Skip to content

Commit 1b073d0

Browse files
committed
Fix tests
1 parent c333bb4 commit 1b073d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_certificate_pinning.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ async def nanokvm_https_server(tmp_path: pathlib.Path) -> AsyncGenerator[str, No
139139
site = web.TCPSite(runner, "127.0.0.1", 0, ssl_context=ssl_ctx)
140140
await site.start()
141141

142-
yield site.name + "api/"
142+
host, port = runner.addresses[0]
143+
yield f"https://{host}:{port}/api/"
143144
finally:
144145
await runner.cleanup()
145146

0 commit comments

Comments
 (0)