Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaeleragni committed Jun 22, 2024
1 parent a7b2ec1 commit e94b73a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib_priv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl SyncTrackerRes {
);
return false;
}
if is_value_different(previous_value, &*component_data){
if is_value_different(previous_value, &*component_data) {
world
.resource_mut::<SyncTrackerRes>()
.pushed_component_from_network
Expand Down
5 changes: 3 additions & 2 deletions tests/host_promotion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mod setup;

#[test]
#[serial]
#[ignore = "host promotion is not complete"]
fn test_host_promotion_with_one_client() {
TestRun::default().run(
2,
Expand All @@ -37,9 +38,9 @@ fn test_host_promotion_with_one_client() {
// todo fix: make the entity id server<>client more agnostic and compatible towards
// host switch
let comp = get_first_entity_component::<MySynched>(&mut env.clients[0]).unwrap();
//assert_eq!(comp.value, 7);
assert_eq!(comp.value, 7);
let comp = get_first_entity_component::<MySynched>(&mut env.clients[1]).unwrap();
//assert_eq!(comp.value, 7);
assert_eq!(comp.value, 7);
},
);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::{
};

use bevy::{
log::{Level, LogPlugin},
pbr::PbrPlugin,
prelude::*,
reflect::{DynamicTypePath, FromReflect, GetTypeRegistration, Reflect},
Expand Down Expand Up @@ -159,7 +158,6 @@ fn add_plugins(app: &mut App) {
app.init_asset::<Mesh>();
app.init_asset::<Image>();
app.add_plugins(PbrPlugin::default());
// app.add_plugins(LogPlugin { ..default() });

app.add_plugins(SyncPlugin);
}
Expand Down

0 comments on commit e94b73a

Please sign in to comment.