From 72cc53e1eede64c0cc67fa9bc5c4311769d14f69 Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Wed, 4 Sep 2024 00:36:06 +0300 Subject: [PATCH] Use `DummyComponent` for the test without registration --- tests/insertion.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/insertion.rs b/tests/insertion.rs index 7a83b5be..94ae60a6 100644 --- a/tests/insertion.rs +++ b/tests/insertion.rs @@ -346,18 +346,18 @@ fn not_replicated() { server_app .world_mut() .entity_mut(server_entity) - .insert(NotReplicatedComponent); + .insert(DummyComponent); server_app.update(); server_app.exchange_with_client(&mut client_app); client_app.update(); - let not_replicated_components = client_app + let components = client_app .world_mut() - .query_filtered::<(), With>() + .query_filtered::<(), With>() .iter(client_app.world()) .count(); - assert_eq!(not_replicated_components, 0); + assert_eq!(components, 0); } #[test] @@ -521,9 +521,6 @@ struct GroupComponentA; #[derive(Component, Deserialize, Serialize)] struct GroupComponentB; -#[derive(Component, Deserialize, Serialize)] -struct NotReplicatedComponent; - #[derive(Component)] struct ReplaceMarker;