Skip to content

Commit 340c7f0

Browse files
committed
Allow all tests to run in single-threaded mode.
1 parent 6d35e22 commit 340c7f0

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
@@ -894,10 +894,6 @@ mod tests {
894894

895895
#[test]
896896
fn load_dependencies() {
897-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
898-
#[cfg(not(feature = "multi_threaded"))]
899-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
900-
901897
let dir = Dir::default();
902898

903899
let a_path = "a.cool.ron";
@@ -1202,10 +1198,6 @@ mod tests {
12021198

12031199
#[test]
12041200
fn failure_load_states() {
1205-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1206-
#[cfg(not(feature = "multi_threaded"))]
1207-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1208-
12091201
let dir = Dir::default();
12101202

12111203
let a_path = "a.cool.ron";
@@ -1335,10 +1327,6 @@ mod tests {
13351327

13361328
#[test]
13371329
fn dependency_load_states() {
1338-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1339-
#[cfg(not(feature = "multi_threaded"))]
1340-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1341-
13421330
let a_path = "a.cool.ron";
13431331
let a_ron = r#"
13441332
(
@@ -1474,10 +1462,6 @@ mod tests {
14741462

14751463
#[test]
14761464
fn manual_asset_management() {
1477-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1478-
#[cfg(not(feature = "multi_threaded"))]
1479-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1480-
14811465
let dir = Dir::default();
14821466
let dep_path = "dep.cool.ron";
14831467

@@ -1575,10 +1559,6 @@ mod tests {
15751559

15761560
#[test]
15771561
fn load_folder() {
1578-
// The particular usage of GatedReader in this test will cause deadlocking if running single-threaded
1579-
#[cfg(not(feature = "multi_threaded"))]
1580-
panic!("This test requires the \"multi_threaded\" feature, otherwise it will deadlock.\ncargo test --package bevy_asset --features multi_threaded");
1581-
15821562
let dir = Dir::default();
15831563

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

0 commit comments

Comments
 (0)