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 3a66582 commit c148edeCopy full SHA for c148ede
Sources/Testing/Test+Macro.swift
@@ -579,10 +579,10 @@ extension Test {
579
nil != strstr(typeName, testContainerTypeNameMagic)
580
}
581
}, /*typeEnumerator:*/ { type, context in
582
- if let context, let type = unsafeBitCast(type, to: Any.Type.self) as? any __TestContainer.Type {
583
- let taskGroup = context.assumingMemoryBound(to: ThrowingTaskGroup<[Self], any Error>.self)
+ if let type = unsafeBitCast(type, to: Any.Type.self) as? any __TestContainer.Type {
+ let taskGroup = context!.assumingMemoryBound(to: ThrowingTaskGroup<[Self], any Error>.self)
584
taskGroup.pointee.addTask {
585
- return await type.__tests
+ await type.__tests
586
587
588
}, &taskGroup)
0 commit comments