test: Filter out expected error messages from tests

Please enter the commit message for your changes. Lines starting
This commit is contained in:
Karl Seguin
2026-07-14 11:50:22 +08:00
parent 56c5701b7b
commit 10e91d0503
3 changed files with 8 additions and 0 deletions

View File

@@ -471,6 +471,9 @@ pub const JsApi = struct {
const testing = @import("../../testing.zig");
test "WebApi: Worker" {
const filter: testing.LogFilter = .init(&.{ .http });
defer filter.deinit();
// Worker tests chain a worker-script fetch with a dynamic-import fetch
// and a cross-context postMessage. The default 2 s assertion budget can
// blow up on TSAN CI; give it more room.

View File

@@ -177,5 +177,7 @@ pub const Build = struct {
const testing = @import("../../../../testing.zig");
test "WebApi: Script" {
const filter: testing.LogFilter = .init(&.{ .http });
defer filter.deinit();
try testing.htmlRunner("element/html/script", .{});
}

View File

@@ -1172,6 +1172,9 @@ test "agent script runtime: re-goto on the same page object replaces its page" {
}
test "agent script runtime: a failed navigation rejects the goto promise" {
const filter: testing.LogFilter = .init(&.{ .frame });
defer filter.deinit();
defer testing.reset();
defer testing.test_session.closeAllPages();