Skip to content

Commit

Permalink
Use DummyComponent for the test without registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Sep 3, 2024
1 parent cd09c24 commit 72cc53e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/insertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotReplicatedComponent>>()
.query_filtered::<(), With<DummyComponent>>()
.iter(client_app.world())
.count();
assert_eq!(not_replicated_components, 0);
assert_eq!(components, 0);
}

#[test]
Expand Down Expand Up @@ -521,9 +521,6 @@ struct GroupComponentA;
#[derive(Component, Deserialize, Serialize)]
struct GroupComponentB;

#[derive(Component, Deserialize, Serialize)]
struct NotReplicatedComponent;

#[derive(Component)]
struct ReplaceMarker;

Expand Down

0 comments on commit 72cc53e

Please sign in to comment.