Skip to content

Commit 3ff972b

Browse files
committed
[Distributed] unlock some tests previously failing
1 parent ea29723 commit 3ff972b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ distributed actor Greeter {
2929
distributed func take(name: String, int: Int, clazz: SomeClass) {
3030
print("take: \(name), int: \(int), clazz: \(clazz)")
3131
}
32+
33+
distributed func params(param p1: String, param p2: Int) -> String {
34+
let message = "params: p1: \(p1), p2: \(p2)"
35+
print(message)
36+
return message
37+
}
3238
}
3339

3440
func test() async throws {
@@ -40,8 +46,10 @@ func test() async throws {
4046
try await ref.take(name: "Caplin", int: 1337)
4147
// CHECK: >> remoteCallVoid: on:main.Greeter, target:main.Greeter.take(name:int:), invocation:FakeInvocationEncoder(genericSubs: [], arguments: ["Caplin", 1337], returnType: nil, errorType: nil), throwing:Swift.Never
4248

43-
// try await ref.take(name: "Caplin", int: 1337, clazz: .init()) // FIXME(distributed): crashes
49+
try await ref.take(name: "Caplin", int: 1337, clazz: .init())
4450

51+
let r3 = try await ref.params(param: "one", param: 2)
52+
print("r3 = \(r3)") // CHECK: r3 = params: p1: one, p2: 2
4553
}
4654

4755
@main struct Main {

0 commit comments

Comments
 (0)