Skip to content

Commit 91b406a

Browse files
committed
Fix WeakMirror test: extend weak referent.
1 parent 29e840e commit 91b406a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/WeakMirror.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ mirrors.test("class/NativeSwiftClassHasNativeWeakReferenceNoLeak") {
113113
let mirror = Mirror(reflecting: parent)
114114
let children = Array(mirror.children)
115115
let extractedChild = children[0].1 as! NativeSwiftClass
116-
// If child is destroyed, the above cast will fail.
117-
_fixLifetime(child)
118116
expectNotNil(extractedChild)
119117
expectNotNil(verifier)
118+
// If child is destroyed, the above cast and checks will fail.
119+
_fixLifetime(child)
120120
}
121121
expectNil(verifier)
122122
}

0 commit comments

Comments
 (0)