Skip to content

Commit

Permalink
Try to resolve a flaky test in the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Jan 24, 2025
1 parent cb4809a commit a9f3121
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions alan/src/compile/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,9 @@ test!(print_function => r#"
test!(duration_print => r#"
export fn main() -> void {
const i = now();
wait(100); // Increased from 10ms to 100ms because the node.js event loop seems less
// capable of guaranteeing staying below 20ms in the delay here.
wait(110); // Increased from 10ms to 110ms because the node.js event loop seems less
// capable of guaranteeing staying below 20ms in the delay here. Adding an extra
// 10ms in case it accidentally waits 90-something ms instead.
const d = i.elapsed;
print(d);
}"#;
Expand Down

0 comments on commit a9f3121

Please sign in to comment.