Skip to content

Commit f16c616

Browse files
test(audience-sdk): clean up missed Progression.Level and Gzip placeholder references
Two inline references survived earlier sweeps: - GzipTests:15 had `WireFixture.Track((MessageFields.EventName, "test"))`; the test exercises the gzip round trip and the event name is filler. Migrated to TestEventNames.PlaceholderTest, matching the HttpTransportTests pattern. - ImmutableAudienceTests:585 had `Level = "1"` in a Progression Track fixture. Migrated to TestFixtures.ProgressionLevelFixture, paired with the existing TypedEventTests usage. Per the user's "everything random goes in a constant" stance. Follow-up to SDK-272 (centralisation of duplicated literals).
1 parent 43216bf commit f16c616

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Packages/Audience/Tests/Runtime/ImmutableAudienceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ public void Track_TypedProgression_WritesCorrectEventName()
582582
{
583583
Status = ProgressionStatus.Complete,
584584
World = TestFixtures.ProgressionWorldTutorial,
585-
Level = "1"
585+
Level = TestFixtures.ProgressionLevelFixture
586586
});
587587
ImmutableAudience.Shutdown();
588588

src/Packages/Audience/Tests/Runtime/Utility/GzipTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal class GzipTests
1212
[Test]
1313
public void Compress_ProducesValidGzip_ThatDecompressesToOriginal()
1414
{
15-
var original = WireFixture.Track((MessageFields.EventName, "test"));
15+
var original = WireFixture.Track((MessageFields.EventName, TestEventNames.PlaceholderTest));
1616

1717
var compressed = Gzip.Compress(original);
1818

0 commit comments

Comments
 (0)