Skip to content

Commit cacbe04

Browse files
committed
fixing order Id correlation
Signed-off-by: salaboy <[email protected]>
1 parent 288802c commit cacbe04

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-boot-examples/workflows/src/test/java/io/dapr/springboot/examples/wfp/WorkflowPatternsAppTests.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void testFanOutIn() {
8686
@Test
8787
void testExternalEventApprove() {
8888

89-
String instanceId = given()
89+
given()
90+
.queryParam("orderId", "123")
9091
.when()
9192
.post("/wfp/externalevent")
9293
.then()
@@ -95,7 +96,7 @@ void testExternalEventApprove() {
9596

9697

9798
given()
98-
.queryParam("instanceId", instanceId)
99+
.queryParam("orderId", "123")
99100
.queryParam("decision", true)
100101
.when()
101102
.post("/wfp/externalevent-continue")
@@ -106,7 +107,8 @@ void testExternalEventApprove() {
106107
@Test
107108
void testExternalEventDeny() {
108109

109-
String instanceId = given()
110+
given()
111+
.queryParam("orderId", "123")
110112
.when()
111113
.post("/wfp/externalevent")
112114
.then()
@@ -115,7 +117,7 @@ void testExternalEventDeny() {
115117

116118

117119
given()
118-
.queryParam("instanceId", instanceId)
120+
.queryParam("orderId", "123")
119121
.queryParam("decision", false)
120122
.when()
121123
.post("/wfp/externalevent-continue")

0 commit comments

Comments
 (0)