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

Commit 4a52227

Browse files
committed
Ignore flaky timer tests
1 parent 53df003 commit 4a52227

File tree

3 files changed

+6
-0
lines changed
  • lumen_runtime/src/otp/erlang/tests/cancel_timer_2/with_reference_timer_reference/with_list_options

3 files changed

+6
-0
lines changed

lumen_runtime/src/otp/erlang/tests/cancel_timer_2/with_reference_timer_reference/with_list_options/with_async_false/without_info/with_local_reference/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;
@@ -22,6 +23,7 @@ fn without_timeout_returns_milliseconds_remaining_and_does_not_send_timeout_mess
2223
let milliseconds_remaining = first_result.unwrap();
2324

2425
assert!(milliseconds_remaining.is_integer());
26+
// flaky
2527
assert!(process.integer(0).unwrap() < milliseconds_remaining);
2628
assert!(milliseconds_remaining <= process.integer(half_milliseconds).unwrap());
2729

lumen_runtime/src/otp/erlang/tests/cancel_timer_2/with_reference_timer_reference/with_list_options/without_async/with_info_false/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/cancel_timer_2/with_reference_timer_reference/with_list_options/without_async/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,6 +5,7 @@ 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);
@@ -19,6 +20,7 @@ fn without_timeout_returns_milliseconds_remaining_and_does_not_send_timeout_mess
1920
.expect("Timer could not be cancelled");
2021

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

0 commit comments

Comments
 (0)