Skip to content

Lightpanda: the headless browser designed for AI and automation

fix(cdp): expectSentError takes .id, not .session_id

qidiai77eaf8433df7
diff --git a/src/server/cdp/CDP.zig b/src/server/cdp/CDP.zig
index 98bfc666d..7d5832559 100644
--- a/src/server/cdp/CDP.zig
+++ b/src/server/cdp/CDP.zig
@@ -1664,7 +1664,7 @@ test "cdp: Page.navigate on the STARTUP session returns -32000" {
.sessionId = "STARTUP",
.params = .{ .url = "https://example.com" },
});
- try ctx.expectSentError(-32000, "No page on the STARTUP session; create a real target with Target.createTarget", .{ .id = 1, .session_id = "STARTUP" });
+ try ctx.expectSentError(-32000, "No page on the STARTUP session; create a real target with Target.createTarget", .{ .id = 1 });
}
test "cdp: disconnect latches so the worker keeps exiting" {