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 1db28fd commit b67cf24Copy full SHA for b67cf24
1 file changed
Tests/BridgeJSIdentityTests/IdentityModeTests.swift
@@ -38,7 +38,9 @@ final class IdentityModeTests: XCTestCase {
38
// let FinalizationRegistry fire and call deinit.
39
for _ in 0..<100 {
40
try gc()
41
- try await Task.sleep(for: .milliseconds(0))
+ // Give the JS runtime an actual turn so FinalizationRegistry callbacks
42
+ // can run before we check the Swift weak reference.
43
+ try await Task.sleep(for: .milliseconds(1))
44
if weakSubject == nil {
45
break
46
}
0 commit comments