|
14 | 14 | // FIXME(distributed): Distributed actors currently have some issues on windows, isRemote always returns false. rdar://82593574
|
15 | 15 | // UNSUPPORTED: OS=windows-msvc
|
16 | 16 |
|
17 |
| - |
18 | 17 | import Distributed
|
19 | 18 | import FakeDistributedActorSystems
|
20 | 19 |
|
@@ -44,28 +43,14 @@ distributed actor Worker: LifecycleWatch {
|
44 | 43 | let actorSystem = DefaultDistributedActorSystem()
|
45 | 44 |
|
46 | 45 | let worker: any LifecycleWatch = Worker(actorSystem: actorSystem)
|
47 |
| - try! await worker.test(x: 42, "on protocol") |
48 |
| - |
49 |
| - // CHECK: executed: test(x:_:) |
50 |
| - // CHECK: executed: watch(x:_:) - x = 42, y = on protocol |
51 |
| - // CHECK: done executed: test(x:_:) |
52 |
| - |
53 | 46 | // ==== --------------------------------------------------------------------
|
54 | 47 |
|
55 | 48 | let remote = try! Worker.resolve(id: worker.id, using: actorSystem)
|
56 |
| - try! await remote.test(x: 42, "direct") // Remote call |
57 |
| - // CHECK: >> remoteCallVoid: on:main.Worker, target:test(x:_:) |
58 |
| - // CHECK: << onReturnVoid: () |
59 |
| - |
60 | 49 | let remoteAny: any LifecycleWatch = remote
|
61 | 50 | try! await remoteAny.test(x: 42, "direct") // Remote call
|
62 | 51 | // CHECK: >> remoteCallVoid: on:main.Worker, target:test(x:_:)
|
63 | 52 | // CHECK: << onReturnVoid: ()
|
64 | 53 |
|
65 |
| - let remoteAnyOptional: (any LifecycleWatch)? = remote |
66 |
| - try! await remoteAnyOptional?.test(x: 42, "direct") // Remote call |
67 |
| - // CHECK: >> remoteCallVoid: on:main.Worker, target:test(x:_:) |
68 |
| - // CHECK: << onReturnVoid: () |
69 | 54 |
|
70 | 55 | print("OK") // CHECK: OK
|
71 | 56 | }
|
|
0 commit comments