File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,9 @@ await Task.detached { @SomeGlobalActor in
200
200
201
201
// CHECK: Testing a separate task off the main actor
202
202
print ( " Testing a separate task off the main actor " )
203
+ #if !os(WASI)
203
204
await Task . detached {
204
205
if #available( SwiftStdlib 6 . 2 , * ) {
205
- // Skip tests on platforms that use the same executor for the main
206
- // actor and the global concurrent executor.
207
- guard Task . defaultExecutor !== MainActor . executor else { return }
208
206
209
207
precondition ( !tryCastToP( mc) )
210
208
precondition ( !tryCastToP( wrappedMC) )
@@ -218,6 +216,7 @@ await Task.detached {
218
216
print ( " Cast succeeds, but shouldn't " )
219
217
}
220
218
} . value
219
+ #endif
221
220
222
221
223
222
// Ensure that we access mc later
You can’t perform that action at this time.
0 commit comments