File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -103,19 +103,19 @@ final class MainActorEcho {
103
103
if #available( SwiftStdlib 5 . 9 , * ) {
104
104
// === MainActor --------------------------------------------------------
105
105
106
- tests. test ( " assumeOnMainActorExecutor : assume the main executor, from 'main() async'" ) {
106
+ tests. test ( " MainActor.assumeIsolated : assume the main executor, from 'main() async'" ) {
107
107
await checkAssumeMainActor ( echo: echo)
108
108
}
109
109
110
- tests. test ( " assumeOnMainActorExecutor : assume the main executor, from MainActor method" ) {
110
+ tests. test ( " MainActor.assumeIsolated : assume the main executor, from MainActor method" ) {
111
111
await mainActorCallCheck ( echo: echo)
112
112
}
113
113
114
- tests. test ( " assumeOnMainActorExecutor : assume the main executor, from actor on MainActor executor" ) {
114
+ tests. test ( " MainActor.assumeIsolated : assume the main executor, from actor on MainActor executor" ) {
115
115
await MainFriend ( ) . callCheck ( echo: echo)
116
116
}
117
117
118
- tests. test ( " assumeOnMainActorExecutor : wrongly assume the main executor, from actor on other executor" ) {
118
+ tests. test ( " MainActor.assumeIsolated : wrongly assume the main executor, from actor on other executor" ) {
119
119
expectCrashLater ( withMessage: " Incorrect actor executor assumption; Expected 'MainActor' executor. " )
120
120
await Someone ( ) . callCheckMainActor ( echo: echo)
121
121
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ distributed actor FiveSevenActor_NothingExecutor {
33
33
defer {
34
34
print ( " done executed: \( #function) " )
35
35
}
36
- assumeOnMainActorExecutor {
36
+ MainActor . assumeIsolated {
37
37
// ignore
38
38
}
39
39
}
@@ -52,7 +52,7 @@ distributed actor FiveNineActor_NothingExecutor {
52
52
defer {
53
53
print ( " done executed: \( #function) " )
54
54
}
55
- assumeOnMainActorExecutor {
55
+ MainActor . assumeIsolated {
56
56
// ignore
57
57
}
58
58
}
@@ -71,7 +71,7 @@ distributed actor FiveSevenActor_FiveNineExecutor {
71
71
defer {
72
72
print ( " done executed: \( #function) " )
73
73
}
74
- assumeOnMainActorExecutor {
74
+ MainActor . assumeIsolated {
75
75
// ignore
76
76
}
77
77
}
You can’t perform that action at this time.
0 commit comments