From 2515ead8799d58a4237f782a6cda7767b56f6a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihat=20Gu=CC=88ndu=CC=88z?= Date: Mon, 2 Dec 2024 12:14:11 +0100 Subject: [PATCH] Adjust tests to fit with the defaultHashedUser change --- Tests/TelemetryDeckTests/TelemetryDeckTests.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Tests/TelemetryDeckTests/TelemetryDeckTests.swift b/Tests/TelemetryDeckTests/TelemetryDeckTests.swift index 506d3c8..4466973 100644 --- a/Tests/TelemetryDeckTests/TelemetryDeckTests.swift +++ b/Tests/TelemetryDeckTests/TelemetryDeckTests.swift @@ -64,7 +64,7 @@ struct TelemetryDeckTests { } } - var configuration = TelemetryManagerConfiguration(appID: UUID().uuidString) + let configuration = TelemetryManagerConfiguration(appID: UUID().uuidString) configuration.metadataEnrichers.append(BasicEnricher()) let signalManager = FakeSignalManager() @@ -85,7 +85,7 @@ struct TelemetryDeckTests { } } - var configuration = TelemetryManagerConfiguration(appID: UUID().uuidString) + let configuration = TelemetryManagerConfiguration(appID: UUID().uuidString) configuration.metadataEnrichers.append(BasicEnricher()) let signalManager = FakeSignalManager() @@ -117,7 +117,7 @@ struct TelemetryDeckTests { func sendsSignals_withAnalyticsExplicitlyEnabled() { let YOUR_APP_ID = "44e0f59a-60a2-4d4a-bf27-1f96ccb4aaa3" - var configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID) + let configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID) configuration.analyticsDisabled = false let signalManager = FakeSignalManager() @@ -132,7 +132,7 @@ struct TelemetryDeckTests { func doesNotSendSignals_withAnalyticsExplicitlyDisabled() { let YOUR_APP_ID = "44e0f59a-60a2-4d4a-bf27-1f96ccb4aaa3" - var configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID) + let configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID) configuration.analyticsDisabled = true let signalManager = FakeSignalManager() @@ -149,7 +149,7 @@ struct TelemetryDeckTests { let YOUR_APP_ID = "44e0f59a-60a2-4d4a-bf27-1f96ccb4aaa3" - var configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID) + let configuration = TelemetryManagerConfiguration(appID: YOUR_APP_ID) configuration.analyticsDisabled = false let signalManager = FakeSignalManager() @@ -206,4 +206,6 @@ private class FakeSignalManager: @preconcurrency SignalManageable { } func attemptToSendNextBatchOfCachedSignals() {} + + var defaultUserIdentifier: String { UUID().uuidString } }