Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit f053a08

Browse files
committed
Ignore flaky timer tests
1 parent 0513b8a commit f053a08

File tree

2 files changed

+4
-0
lines changed
  • lumen_runtime/src/otp/erlang/tests
    • cancel_timer_2/with_reference_timer_reference/with_list_options/with_async_true/with_info_true/with_local_reference/with_timer
    • read_timer_2/with_reference/with_empty_list_options/with_timer

2 files changed

+4
-0
lines changed

lumen_runtime/src/otp/erlang/tests/cancel_timer_2/with_reference_timer_reference/with_list_options/with_async_true/with_info_true/with_local_reference/with_timer/in_different_thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ use std::thread;
55
use std::time::Duration;
66

77
#[test]
8+
#[ignore]
89
fn without_timeout_returns_milliseconds_remaining_and_does_not_send_timeout_message() {
910
with_timer(|milliseconds, barrier, timer_reference, process| {
1011
timeout_after_half(milliseconds, barrier);
1112

1213
let message = atom_unchecked("different");
1314
let timeout_message = timeout_message(timer_reference, message, process);
1415

16+
// flaky
1517
assert!(!has_message(process, timeout_message));
1618

1719
assert_eq!(

lumen_runtime/src/otp/erlang/tests/read_timer_2/with_reference/with_empty_list_options/with_timer/in_same_thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::thread;
44
use std::time::Duration;
55

66
#[test]
7+
#[ignore]
78
fn without_timeout_returns_milliseconds_remaining_and_does_not_send_timeout_message() {
89
with_timer(|milliseconds, message, timer_reference, process| {
910
let half_milliseconds = milliseconds / 2;
@@ -19,6 +20,7 @@ fn without_timeout_returns_milliseconds_remaining_and_does_not_send_timeout_mess
1920
.expect("Timer could not be read");
2021

2122
assert!(first_milliseconds_remaining.is_integer());
23+
// flaky
2224
assert!(process.integer(0).unwrap() < first_milliseconds_remaining);
2325
assert!(first_milliseconds_remaining <= process.integer(milliseconds / 2).unwrap());
2426

0 commit comments

Comments
 (0)