Skip to content

Commit 271dd1b

Browse files
since it was using async and i was not using a sync after, the queue may have not processed all work items by the time the group leaves. changed it to sync
1 parent 93ab621 commit 271dd1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OptimizelySDK/OptimizelyTests/OptimizelyTests-APIs/OptimizelyManagerTests_Threading.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class OptimizelyManagerTests_Threading: XCTestCase {
270270
let enabled = try? optimizely2.isFeatureEnabled(featureKey: "feat", userId: self.userId, attributes: ["house": "Gryffindor"])
271271
let variation = try? optimizely3.activate(experimentKey: "ab_running_exp_untargeted", userId: self.userId)
272272

273-
appendLock.async {
273+
appendLock.sync {
274274
atomicBackground.property!.append((enabled: enabled!, variation: variation!))
275275
}
276276

0 commit comments

Comments
 (0)