test: Use Thread::scoped in two more tests
I saw these hanging on a windows bot, and the previous ones seem to have calmed down after switching from Thread::spawn to Thread::scoped, so try that here as well!
This commit is contained in:
parent
431105a70a
commit
b8304e5404
@ -19,5 +19,5 @@ fn f() {
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
let _t = Thread::spawn(f);
|
||||
let _t = Thread::scoped(f);
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ extern crate "weak-lang-items" as other;
|
||||
use std::thread::Thread;
|
||||
|
||||
fn main() {
|
||||
let _ = Thread::spawn(move|| {
|
||||
let _ = Thread::scoped(move|| {
|
||||
other::foo()
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user