diff --git a/DuckDuckGo/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift b/DuckDuckGo/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift index 88a5fbfc94..7e05352066 100644 --- a/DuckDuckGo/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift +++ b/DuckDuckGo/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift @@ -88,7 +88,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController { func handleFailure(_ error: Error) { log(error) - pixelKit?.fire(StartAttempt.failure(error), frequency: .dailyAndContinuous) + pixelKit?.fire(StartAttempt.failure(error), frequency: .dailyAndCount) } do { @@ -98,7 +98,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController { if let error { handleFailure(error) } else { - pixelKit?.fire(StartAttempt.success, frequency: .dailyAndContinuous) + pixelKit?.fire(StartAttempt.success, frequency: .dailyAndCount) } } } catch { @@ -112,7 +112,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController { func handleFailure(_ error: Error) { log(error) - pixelKit?.fire(StopAttempt.failure(error), frequency: .dailyAndContinuous) + pixelKit?.fire(StopAttempt.failure(error), frequency: .dailyAndCount) } do { @@ -122,7 +122,7 @@ extension NetworkProtectionIPCTunnelController: TunnelController { if let error { handleFailure(error) } else { - pixelKit?.fire(StopAttempt.success, frequency: .dailyAndContinuous) + pixelKit?.fire(StopAttempt.success, frequency: .dailyAndCount) } } } catch { diff --git a/UnitTests/NetworkProtection/NetworkProtectionIPCTunnelControllerTests.swift b/UnitTests/NetworkProtection/NetworkProtectionIPCTunnelControllerTests.swift index 0f7837391a..b2376ee397 100644 --- a/UnitTests/NetworkProtection/NetworkProtectionIPCTunnelControllerTests.swift +++ b/UnitTests/NetworkProtection/NetworkProtectionIPCTunnelControllerTests.swift @@ -31,7 +31,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase { func testStartTunnelSuccess() async { let pixelKit = PixelKitMock(expecting: [ .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.begin, frequency: .standard), - .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.success, frequency: .dailyAndContinuous) + .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.success, frequency: .dailyAndCount) ]) let controller = NetworkProtectionIPCTunnelController( featureVisibility: MockFeatureVisibility(), @@ -50,7 +50,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase { let pixelKit = PixelKitMock(expecting: [ .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.begin, frequency: .standard), - .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(expectedError), frequency: .dailyAndContinuous) + .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(expectedError), frequency: .dailyAndCount) ]) let controller = NetworkProtectionIPCTunnelController( @@ -68,7 +68,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase { let error = NSError(domain: "test", code: 1) let pixelKit = PixelKitMock(expecting: [ .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.begin, frequency: .standard), - .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(error), frequency: .dailyAndContinuous) + .init(pixel: NetworkProtectionIPCTunnelController.StartAttempt.failure(error), frequency: .dailyAndCount) ]) let controller = NetworkProtectionIPCTunnelController( featureVisibility: MockFeatureVisibility(), @@ -86,7 +86,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase { func testStopTunnelSuccess() async { let pixelKit = PixelKitMock(expecting: [ .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.begin, frequency: .standard), - .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.success, frequency: .dailyAndContinuous) + .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.success, frequency: .dailyAndCount) ]) let controller = NetworkProtectionIPCTunnelController( featureVisibility: MockFeatureVisibility(), @@ -105,7 +105,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase { let pixelKit = PixelKitMock(expecting: [ .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.begin, frequency: .standard), - .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(expectedError), frequency: .dailyAndContinuous) + .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(expectedError), frequency: .dailyAndCount) ]) let controller = NetworkProtectionIPCTunnelController( @@ -123,7 +123,7 @@ final class NetworkProtectionIPCTunnelControllerTests: XCTestCase { let error = NSError(domain: "test", code: 1) let pixelKit = PixelKitMock(expecting: [ .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.begin, frequency: .standard), - .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(error), frequency: .dailyAndContinuous) + .init(pixel: NetworkProtectionIPCTunnelController.StopAttempt.failure(error), frequency: .dailyAndCount) ]) let controller = NetworkProtectionIPCTunnelController( featureVisibility: MockFeatureVisibility(),