Skip to content

Commit 8e7eb23

Browse files
authored
Merge pull request #120 from optimizely/fixConcurrentTest
(fix): since it was using async and i was not using a sync after, the queue …
2 parents 93ab621 + 271dd1b commit 8e7eb23

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)