Lightpanda: the headless browser designed for AI and automation
avoid ephemeral port for failure-test, something could be listening
Karl Seguin39c00d86ee16
diff --git a/src/browser/tests/cdp/log_subresources.html b/src/browser/tests/cdp/log_subresources.htmlindex 6b6fab054..f33c92e0a 100644--- a/src/browser/tests/cdp/log_subresources.html+++ b/src/browser/tests/cdp/log_subresources.html@@ -4,5 +4,5 @@reason phrase) and a port nobody listens on. --><script src="/status/404"></script><script src="/xhr/reason"></script>-<script src="http://127.0.0.1:59999/refused.js"></script>+<script src="http://127.0.0.1:2/refused.js"></script></body>diff --git a/src/server/cdp/domains/log.zig b/src/server/cdp/domains/log.zigindex 1ac5148f1..df56aa8b6 100644--- a/src/server/cdp/domains/log.zig+++ b/src/server/cdp/domains/log.zig@@ -270,7 +270,7 @@ test "cdp.log: sub-resources with an error status or a network error" {try requestIdFor(&ctx, reason),);- const refused = "http://127.0.0.1:59999/refused.js";+ const refused = "http://127.0.0.1:2/refused.js";try expectEntry(entries,"Failed to load resource: net::ERR_CONNECTION_REFUSED",@@ -310,7 +310,7 @@ test "cdp.log: a document with an error status, not a failed navigation" {try ctx.processMessage(.{ .id = 2, .method = "Log.enable" });const page = try bc.session.createPage();- try page.navigate("http://127.0.0.1:59999/", .{});+ try page.navigate("http://127.0.0.1:2/", .{});try testing.waitForPage(bc);// The navigation did fail, and Chrome shows its error page without