Skip to content

Commit

Permalink
Make sure the invocation id is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed May 3, 2024
1 parent ed5447e commit 7c52792
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/src/test/kotlin/dev/restate/e2e/runtime/IngressTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ class IngressTest {
val counterClient = CounterClient.fromIngress(ingressClient, counterRandomName)

// Send request twice
counterClient.send().add(2, requestOptions)
counterClient.send().add(2, requestOptions)
val firstInvocationId = counterClient.send().add(2, requestOptions)
val secondInvocationId = counterClient.send().add(2, requestOptions)

// IDs should be the same
assertThat(firstInvocationId).startsWith("inv").isEqualTo(secondInvocationId)

// Wait for get
await untilAsserted { assertThat(counterClient.get()).isEqualTo(2) }
Expand Down

0 comments on commit 7c52792

Please sign in to comment.