We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e308cac commit 00c1fbdCopy full SHA for 00c1fbd
Tests/InterposeKitTests/UtilitiesTests.swift
@@ -20,12 +20,12 @@ extension NSObject {
20
21
final class UtilitiesTests: XCTestCase {
22
23
- static var hasRunTestSetPerceivedClass = false
+ static let hasRunTestSetPerceivedClass = LockIsolated(false)
24
25
func test_setPerceivedClass() throws {
26
// Runs only once to avoid leaking class swizzling across test runs.
27
- try XCTSkipIf(Self.hasRunTestSetPerceivedClass, "Class override already applied.")
28
- Self.hasRunTestSetPerceivedClass = true
+ try XCTSkipIf(Self.hasRunTestSetPerceivedClass.value, "Class override already applied.")
+ Self.hasRunTestSetPerceivedClass.withValue{ $0 = true }
29
30
let object = RealClass()
31
0 commit comments