From fa307c2e059a7ef009e85e357fae8e38055be5e9 Mon Sep 17 00:00:00 2001 From: Todd Anderson Date: Tue, 14 Jan 2025 14:32:34 -0600 Subject: [PATCH] fixing tests --- LaunchDarkly/LaunchDarklyTests/LDClientSpec.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LaunchDarkly/LaunchDarklyTests/LDClientSpec.swift b/LaunchDarkly/LaunchDarklyTests/LDClientSpec.swift index 9268eab8..7590ae2e 100644 --- a/LaunchDarkly/LaunchDarklyTests/LDClientSpec.swift +++ b/LaunchDarkly/LaunchDarklyTests/LDClientSpec.swift @@ -382,7 +382,7 @@ final class LDClientSpec: QuickSpec { expect(testContext.serviceFactoryMock.makeEventReporterReceivedService?.context) == testContext.context } it("uncaches the new contexts flags") { - expect(testContext.featureFlagCachingMock.getCachedDataCallCount) == 2 + expect(testContext.featureFlagCachingMock.getCachedDataCallCount) == 1 expect(testContext.featureFlagCachingMock.getCachedDataReceivedArguments?.cacheKey) == testContext.context.fullyQualifiedHashedKey() } it("records an identify event") { @@ -421,7 +421,7 @@ final class LDClientSpec: QuickSpec { expect(testContext.serviceFactoryMock.makeEventReporterReceivedService?.context) == testContext.context } it("uncaches the new contexts flags") { - expect(testContext.featureFlagCachingMock.getCachedDataCallCount) == 2 + expect(testContext.featureFlagCachingMock.getCachedDataCallCount) == 1 expect(testContext.featureFlagCachingMock.getCachedDataReceivedArguments?.cacheKey) == testContext.context.fullyQualifiedHashedKey() } it("records an identify event") {