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 {
103103 if #available( SwiftStdlib 5 . 9 , * ) {
104104 // === MainActor --------------------------------------------------------
105105
106- tests. test ( " assumeOnMainActorExecutor : assume the main executor, from 'main() async'" ) {
106+ tests. test ( " MainActor.assumeIsolated : assume the main executor, from 'main() async'" ) {
107107 await checkAssumeMainActor ( echo: echo)
108108 }
109109
110- tests. test ( " assumeOnMainActorExecutor : assume the main executor, from MainActor method" ) {
110+ tests. test ( " MainActor.assumeIsolated : assume the main executor, from MainActor method" ) {
111111 await mainActorCallCheck ( echo: echo)
112112 }
113113
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" ) {
115115 await MainFriend ( ) . callCheck ( echo: echo)
116116 }
117117
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" ) {
119119 expectCrashLater ( withMessage: " Incorrect actor executor assumption; Expected 'MainActor' executor. " )
120120 await Someone ( ) . callCheckMainActor ( echo: echo)
121121 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ distributed actor FiveSevenActor_NothingExecutor {
3333 defer {
3434 print ( " done executed: \( #function) " )
3535 }
36- assumeOnMainActorExecutor {
36+ MainActor . assumeIsolated {
3737 // ignore
3838 }
3939 }
@@ -52,7 +52,7 @@ distributed actor FiveNineActor_NothingExecutor {
5252 defer {
5353 print ( " done executed: \( #function) " )
5454 }
55- assumeOnMainActorExecutor {
55+ MainActor . assumeIsolated {
5656 // ignore
5757 }
5858 }
@@ -71,7 +71,7 @@ distributed actor FiveSevenActor_FiveNineExecutor {
7171 defer {
7272 print ( " done executed: \( #function) " )
7373 }
74- assumeOnMainActorExecutor {
74+ MainActor . assumeIsolated {
7575 // ignore
7676 }
7777 }
You can’t perform that action at this time.
0 commit comments