Skip to content

Commit 154d50a

Browse files
committed
Allow all tests to run in single-threaded mode.
1 parent 3c1b9b2 commit 154d50a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

crates/bevy_asset/src/lib.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -863,10 +863,6 @@ mod tests {
863863

864864
#[test]
865865
fn load_dependencies() {
866-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
867-
#[cfg(not(feature = "multi_threaded"))]
868-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
869-
870866
let dir = Dir::default();
871867

872868
let a_path = "a.cool.ron";
@@ -1171,10 +1167,6 @@ mod tests {
11711167

11721168
#[test]
11731169
fn failure_load_states() {
1174-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1175-
#[cfg(not(feature = "multi_threaded"))]
1176-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1177-
11781170
let dir = Dir::default();
11791171

11801172
let a_path = "a.cool.ron";
@@ -1304,10 +1296,6 @@ mod tests {
13041296

13051297
#[test]
13061298
fn dependency_load_states() {
1307-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1308-
#[cfg(not(feature = "multi_threaded"))]
1309-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1310-
13111299
let a_path = "a.cool.ron";
13121300
let a_ron = r#"
13131301
(
@@ -1443,10 +1431,6 @@ mod tests {
14431431

14441432
#[test]
14451433
fn manual_asset_management() {
1446-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1447-
#[cfg(not(feature = "multi_threaded"))]
1448-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1449-
14501434
let dir = Dir::default();
14511435
let dep_path = "dep.cool.ron";
14521436

@@ -1544,10 +1528,6 @@ mod tests {
15441528

15451529
#[test]
15461530
fn load_folder() {
1547-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1548-
#[cfg(not(feature = "multi_threaded"))]
1549-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1550-
15511531
let dir = Dir::default();
15521532

15531533
let a_path = "text/a.cool.ron";

0 commit comments

Comments
 (0)