Skip to content

Commit

Permalink
delays-test-thread (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
naomijub authored Mar 4, 2024
1 parent 8c38033 commit 354e3c4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/prefab/src/save.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,10 @@ mod tests {
app.update();

serialize_scene(&mut app.world);
// Debug on CI
let _ = std::fs::read_dir("./")
.unwrap()
.filter_map(|d| std::fs::read_dir(d.ok()?.path()).ok())
.flatten()
.inspect(|d| println!("{:?}", d));

// Delay for 0.2 second for IOTaskPool to finish
std::thread::sleep(std::time::Duration::from_secs_f32(0.2));

assert!(
std::fs::metadata(format!("./{}", file)).is_ok(),
"Flaky Test: File not found"
Expand Down

0 comments on commit 354e3c4

Please sign in to comment.