Skip to content

Commit 8ad5a0d

Browse files
committed
Fix Tests
Signed-off-by: Mikhail Agapov <mikhail.agapov@decentraland.org>
1 parent 895b20a commit 8ad5a0d

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

src/DCLPulseTests/PeerViewDiffTests.cs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -284,34 +284,22 @@ public void CreateMessage_JumpCountChanged_SetAcrossAllTiers(
284284
Assert.That(delta.JumpCount, Is.EqualTo(3));
285285
}
286286

287-
// ── PointAt tier gating + null-to-null ──────────────────────────
287+
// ── PointAt: tier-agnostic + null handling ──────────────────────
288288

289289
[Test]
290-
public void CreateMessage_Tier0_IncludesPointAt()
290+
public void CreateMessage_PointAtChanged_SetAcrossAllTiers(
291+
[Values] PeerViewSimulationTierValue tierValue)
291292
{
292293
PeerSnapshot from = MakeSnapshot();
293294
PeerSnapshot to = MakeSnapshot(seq: 2, pointAt: new Vector3(5f, 6f, 7f));
294295

295-
PlayerStateDeltaTier0 delta = PeerViewDiff.CreateMessage(SUBJECT, from, to, PeerViewSimulationTier.TIER_0);
296+
PlayerStateDeltaTier0 delta = PeerViewDiff.CreateMessage(SUBJECT, from, to, ToTier(tierValue));
296297

297298
Assert.That(delta.HasPointAtX, Is.True);
298299
Assert.That(delta.HasPointAtY, Is.True);
299300
Assert.That(delta.HasPointAtZ, Is.True);
300301
}
301302

302-
[Test]
303-
public void CreateMessage_Tier1_ExcludesPointAt()
304-
{
305-
PeerSnapshot from = MakeSnapshot();
306-
PeerSnapshot to = MakeSnapshot(seq: 2, pointAt: new Vector3(5f, 6f, 7f));
307-
308-
PlayerStateDeltaTier0 delta = PeerViewDiff.CreateMessage(SUBJECT, from, to, PeerViewSimulationTier.TIER_1);
309-
310-
Assert.That(delta.HasPointAtX, Is.False);
311-
Assert.That(delta.HasPointAtY, Is.False);
312-
Assert.That(delta.HasPointAtZ, Is.False);
313-
}
314-
315303
[Test]
316304
public void CreateMessage_PointAtBothNull_DoesNotSet()
317305
{

0 commit comments

Comments
 (0)