Skip to content

Commit 6e10e29

Browse files
committed
Fix tests
1 parent 5bd834b commit 6e10e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/thread/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,12 +1009,12 @@ mod tests {
10091009

10101010
#[test]
10111011
fn test_thread_id_equal() {
1012-
assert_eq!(ThreadId::current(), ThreadId::current());
1012+
assert!(thread::ThreadId::current() == thread::ThreadId::current());
10131013
}
10141014

10151015
#[test]
10161016
fn test_thread_id_not_equal() {
1017-
assert!(ThreadId::current() != spawn(|| ThreadId::current()).join());
1017+
assert!(thread::ThreadId::current() != thread::spawn(|| thread::ThreadId::current()).join().unwrap());
10181018
}
10191019

10201020
// NOTE: the corresponding test for stderr is in run-pass/thread-stderr, due

0 commit comments

Comments
 (0)