loop.run now takes a maximum wait time

This commit is contained in:
Karl Seguin
2025-06-23 16:43:28 +08:00
parent 11fe79312d
commit fe6ccad485
4 changed files with 10 additions and 12 deletions

View File

@@ -435,7 +435,7 @@ pub const JsRunner = struct {
}
return err;
};
try self.page.loop.run();
try self.page.loop.run(std.time.ns_per_ms * 200);
@import("root").js_runner_duration += std.time.Instant.since(try std.time.Instant.now(), start);
if (case.@"1") |expected| {