Skip to content

Commit

Permalink
Update jest.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jan 23, 2025
1 parent 406ebbd commit fb4c140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/test/jest.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ pub const TestRunnerTask = struct {
const elapsed = now.duration(&this.started_at).ms();
this.ref.unref(this.globalThis.bunVM());
this.globalThis.throwTerminationException();
this.handleResult(.{ .fail = expect.active_test_expectation_counter.actual }, .{ .timeout = elapsed });
this.handleResult(.{ .fail = expect.active_test_expectation_counter.actual }, .{ .timeout = @intCast(@max(elapsed, 0)) });
}

const ResultType = union(enum) {
Expand Down

0 comments on commit fb4c140

Please sign in to comment.