Skip to content

Commit

Permalink
fix: fix the unittest for opt out non sdk metadata (#285)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weihao-statsig authored Jul 1, 2024
1 parent d756651 commit 3a324f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/StatsigTests/StatsigUserSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 3a324f0

Please sign in to comment.