Skip to content

Commit a1ba91b

Browse files
committed
Fix tests
Signed-off-by: Mikhail Agapov <mikhail.agapov@decentraland.org>
1 parent bb79247 commit a1ba91b

File tree

6 files changed

+514
-12
lines changed

6 files changed

+514
-12
lines changed

src/DCLPulseBenchmarks/SpatialInterestBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void Setup()
9898
Seq: 1, ServerTick: 0, Parcel: 0,
9999
LocalPosition: pos, Velocity: Vector3.Zero,
100100
GlobalPosition: pos,
101-
RotationY: 0f, MovementBlend: 0f, SlideBlend: 0f,
101+
RotationY: 0f, MovementBlend: 0f, JumpCount: 0, SlideBlend: 0f,
102102
HeadYaw: null, HeadPitch: null,
103103
AnimationFlags: PlayerAnimationFlags.None,
104104
GlideState: GlideState.PropClosed));
@@ -108,7 +108,7 @@ public void Setup()
108108
Seq: 1, ServerTick: 0, Parcel: 0,
109109
LocalPosition: Vector3.Zero, Velocity: Vector3.Zero,
110110
GlobalPosition: Vector3.Zero,
111-
RotationY: 0f, MovementBlend: 0f, SlideBlend: 0f,
111+
RotationY: 0f, MovementBlend: 0f, JumpCount: 0, SlideBlend: 0f,
112112
HeadYaw: null, HeadPitch: null,
113113
AnimationFlags: PlayerAnimationFlags.None,
114114
GlideState: GlideState.PropClosed);

src/DCLPulseTests/PeerSimulationTests.PlayerJoined.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public void PlayerJoined_ContainsFullState()
3535
Velocity: new Vector3(0.5f, 0f, -0.5f),
3636
RotationY: 1.57f,
3737
MovementBlend: 0.8f, SlideBlend: 0.2f,
38+
JumpCount: 0,
3839
HeadYaw: 0.3f, HeadPitch: -0.1f,
3940
AnimationFlags: PlayerAnimationFlags.Grounded,
4041
GlideState: GlideState.PropClosed);

src/DCLPulseTests/PeerSimulationTests.SelfMirror.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void PublishSnapshot(PeerIndex peer, uint seq, Vector3? position = null)
9191
Parcel: 0,
9292
LocalPosition: position ?? Vector3.Zero, Velocity: Vector3.Zero,
9393
GlobalPosition: position ?? Vector3.Zero,
94-
RotationY: 0f, MovementBlend: 0f, SlideBlend: 0f,
94+
RotationY: 0f, MovementBlend: 0f, JumpCount: 0, SlideBlend: 0f,
9595
HeadYaw: null, HeadPitch: null,
9696
AnimationFlags: PlayerAnimationFlags.None,
9797
GlideState: GlideState.PropClosed));

src/DCLPulseTests/PeerSimulationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void PublishSnapshot(PeerIndex peer, uint seq, Vector3? position = null)
103103
Parcel: 0,
104104
LocalPosition: position ?? Vector3.Zero, Velocity: Vector3.Zero,
105105
GlobalPosition: position ?? Vector3.Zero,
106-
RotationY: 0f, MovementBlend: 0f, SlideBlend: 0f,
106+
RotationY: 0f, MovementBlend: 0f, JumpCount: 0, SlideBlend: 0f,
107107
HeadYaw: null, HeadPitch: null,
108108
AnimationFlags: PlayerAnimationFlags.None,
109109
GlideState: GlideState.PropClosed));

src/DCLPulseTests/SpatialHashAreaOfInterestTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ private void PublishSnapshot(PeerIndex peer, Vector3 position)
278278
Velocity: Vector3.Zero,
279279
RotationY: 0f,
280280
MovementBlend: 0f,
281+
JumpCount: 0,
281282
SlideBlend: 0f,
282283
HeadYaw: null,
283284
HeadPitch: null,
@@ -289,7 +290,7 @@ private static PeerSnapshot MakeSnapshot(Vector3 position) =>
289290
new (Seq: 1, ServerTick: 0, Parcel: 0,
290291
LocalPosition: position, Velocity: Vector3.Zero,
291292
GlobalPosition: position,
292-
RotationY: 0f, MovementBlend: 0f, SlideBlend: 0f,
293+
RotationY: 0f, MovementBlend: 0f, JumpCount: 0, SlideBlend: 0f,
293294
HeadYaw: null, HeadPitch: null,
294295
AnimationFlags: PlayerAnimationFlags.None,
295296
GlideState: GlideState.PropClosed);

0 commit comments

Comments
 (0)