Skip to content

Commit 151bae1

Browse files
committed
[Distributed] NFC: Update accessor test-cases to use FakeActorSystem instead of Transport
1 parent dd0d5a8 commit 151bae1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/IRGen/distributed_actor_accessors.swift renamed to test/Distributed/distributed_actor_accessors.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
// RUN: %target-swift-frontend -emit-irgen %s -swift-version 5 -enable-experimental-distributed | %IRGenFileCheck %s
1+
2+
// RUN: %empty-directory(%t)
3+
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/Inputs/FakeDistributedActorSystems.swift
4+
// RUN: %target-swift-frontend -emit-irgen -enable-experimental-distributed -disable-availability-checking -I %t 2>&1 %s | %IRGenFileCheck %s
25

36
// UNSUPPORTED: back_deploy_concurrency
47
// REQUIRES: concurrency
58
// REQUIRES: distributed
69

710
import _Distributed
11+
import FakeDistributedActorSystems
12+
13+
@available(SwiftStdlib 5.5, *)
14+
typealias DefaultDistributedActorSystem = FakeActorSystem
815

916
enum SimpleE : Codable {
1017
case a
@@ -36,8 +43,6 @@ struct LargeStruct : Codable {
3643

3744
@available(SwiftStdlib 5.6, *)
3845
public distributed actor MyActor {
39-
public typealias Transport = AnyActorTransport
40-
4146
distributed func simple1(_: Int) {
4247
}
4348

@@ -72,8 +77,6 @@ public distributed actor MyActor {
7277

7378
@available(SwiftStdlib 5.6, *)
7479
public distributed actor MyOtherActor {
75-
public typealias Transport = AnyActorTransport
76-
7780
distributed func empty() {
7881
}
7982
}

0 commit comments

Comments
 (0)