From 20a15c292a02eb63e7badb31a03d48bb53d55d7f Mon Sep 17 00:00:00 2001 From: Till Rohrmann Date: Wed, 13 Nov 2024 15:35:28 +0100 Subject: [PATCH] Harden kill invocation test for the the three node setup --- .../kotlin/dev/restate/sdktesting/tests/KillInvocation.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/restate/sdktesting/tests/KillInvocation.kt b/src/main/kotlin/dev/restate/sdktesting/tests/KillInvocation.kt index 5e69f47..b650deb 100644 --- a/src/main/kotlin/dev/restate/sdktesting/tests/KillInvocation.kt +++ b/src/main/kotlin/dev/restate/sdktesting/tests/KillInvocation.kt @@ -38,7 +38,11 @@ class KillInvocation { @Test fun kill(@InjectClient ingressClient: Client, @InjectMetaURL metaURL: URL) = runTest { - val id = KillTestRunnerClient.fromClient(ingressClient).send().startCallTree().invocationId + val id = + KillTestRunnerClient.fromClient(ingressClient) + .send() + .startCallTree(idempotentCallOptions()) + .invocationId val awakeableHolderClient = AwakeableHolderClient.fromClient(ingressClient, "kill") // With this synchronization point we make sure the call tree has been built before killing it. await withAlias