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

Commit 1e0dd3f

Browse files
committed
fix: emit warnings
Signed-off-by: Chojan Shang <[email protected]>
1 parent 29efb00 commit 1e0dd3f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/lib.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,21 +1013,21 @@ mod tests {
10131013
assert_eq!(rx.recv_timeout(Duration::from_millis(500)).unwrap(), 0);
10141014
assert_eq!(f1(), 0);
10151015
}
1016-
}
10171016

1018-
// TODO: move it to test.rs, once tracing-test is fixed
1019-
#[test]
1020-
#[tracing_test::traced_test]
1021-
#[cfg_attr(not(feature = "failpoints"), ignore)]
1022-
fn test_failpoints_print() {
1023-
let f = || {
1024-
failpoint!("print");
1025-
};
1026-
crate::cfg("print", "print(msg)").unwrap();
1027-
f();
1028-
assert!(logs_contain("msg"));
1017+
// TODO: move it to test.rs, once tracing-test is fixed
1018+
#[tracing_test::traced_test]
1019+
#[test]
1020+
#[cfg_attr(not(feature = "failpoints"), ignore)]
1021+
fn test_failpoints_print() {
1022+
let f = || {
1023+
failpoint!("print");
1024+
};
1025+
crate::cfg("print", "print(msg)").unwrap();
1026+
f();
1027+
assert!(logs_contain("msg"));
10291028

1030-
crate::cfg("print", "print").unwrap();
1031-
f();
1032-
assert!(logs_contain("failpoint print executed."));
1029+
crate::cfg("print", "print").unwrap();
1030+
f();
1031+
assert!(logs_contain("failpoint print executed."));
1032+
}
10331033
}

0 commit comments

Comments
 (0)