From 3a324f0bfe3e0b23b635880289487a8275e1eb0c Mon Sep 17 00:00:00 2001 From: Weihao Ding <158090588+weihao-statsig@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:14:43 -0700 Subject: [PATCH] fix: fix the unittest for opt out non sdk metadata (#285) I just created a release PR and realized the `sdkVersion` is keeping changing. So adjust it to check not nil rather than a fixed version number --- Tests/StatsigTests/StatsigUserSpec.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/StatsigTests/StatsigUserSpec.swift b/Tests/StatsigTests/StatsigUserSpec.swift index e6912bb..3a63b43 100644 --- a/Tests/StatsigTests/StatsigUserSpec.swift +++ b/Tests/StatsigTests/StatsigUserSpec.swift @@ -29,7 +29,7 @@ class StatsigUserSpec: BaseSpec { let validUserOptOutNonSdkMetadata = StatsigUser(optOutNonSdkMetadata: true) let deviceEnvironment = validUserOptOutNonSdkMetadata.deviceEnvironment - expect(deviceEnvironment["sdkVersion"]) == "1.44.0" + expect(deviceEnvironment["sdkVersion"]).toNot(beNil()) expect(deviceEnvironment["sdkType"]) == "ios-client" expect(deviceEnvironment["sessionID"]).toNot(beNil()) expect(deviceEnvironment["stableID"]).toNot(beNil())