@@ -115,14 +115,17 @@ final class MainActorEcho {
115
115
await MainFriend ( ) . callCheck ( echo: echo)
116
116
}
117
117
118
+ #if !os(WASI)
118
119
tests. test ( " MainActor.assumeIsolated: wrongly assume the main executor, from actor on other executor " ) {
119
120
expectCrashLater ( withMessage: " Incorrect actor executor assumption; Expected 'MainActor' executor. " )
120
121
await Someone ( ) . callCheckMainActor ( echo: echo)
121
122
}
123
+ #endif
122
124
123
125
// === some Actor -------------------------------------------------------
124
126
125
127
let someone = Someone ( )
128
+ #if !os(WASI)
126
129
tests. test ( " assumeOnActorExecutor: wrongly assume someone's executor, from 'main() async' " ) {
127
130
expectCrashLater ( withMessage: " Incorrect actor executor assumption; Expected same executor as a.Someone. " )
128
131
checkAssumeSomeone ( someone: someone)
@@ -132,6 +135,7 @@ final class MainActorEcho {
132
135
expectCrashLater ( withMessage: " Incorrect actor executor assumption; Expected same executor as a.Someone. " )
133
136
checkAssumeSomeone ( someone: someone)
134
137
}
138
+ #endif
135
139
136
140
tests. test ( " assumeOnActorExecutor: assume someone's executor, from Someone " ) {
137
141
await someone. callCheckSomeone ( )
@@ -141,10 +145,12 @@ final class MainActorEcho {
141
145
await SomeonesFriend ( someone: someone) . callCheckSomeone ( )
142
146
}
143
147
148
+ #if !os(WASI)
144
149
tests. test ( " assumeOnActorExecutor: wrongly assume the main executor, from actor on other executor " ) {
145
150
expectCrashLater ( withMessage: " Incorrect actor executor assumption; Expected same executor as a.Someone. " )
146
151
await CompleteStranger ( someone: someone) . callCheckSomeone ( )
147
152
}
153
+ #endif
148
154
149
155
150
156
}
0 commit comments