Skip to content

Commit

Permalink
Adjust tests to fit with the defaultHashedUser change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Dec 2, 2024
1 parent 2e4553d commit 2515ead
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Tests/TelemetryDeckTests/TelemetryDeckTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -206,4 +206,6 @@ private class FakeSignalManager: @preconcurrency SignalManageable {
}

func attemptToSendNextBatchOfCachedSignals() {}

var defaultUserIdentifier: String { UUID().uuidString }
}

0 comments on commit 2515ead

Please sign in to comment.