Skip to content

Commit 38df432

Browse files
authored
fix(test): expect provider empty durable input (#216)
1 parent 9126ef9 commit 38df432

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/e2e/api/durable_functions_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,16 @@ func requireAPIE2EDurableStarts(t *testing.T, env *apiE2E) {
165165
env.runCloudCLI(t, "durable", "executions", "get", "order-pipeline", fileExecutionID).
166166
requireSuccess(t, "8231", "file")
167167

168-
// The shortest start there is: no input, and a name Volcano generates. No
169-
// input reaches the function as no input, which the fixture reports as a
170-
// null echo rather than an empty object.
168+
// The shortest start there is: no input, and a name Volcano generates. The
169+
// CLI sends no request body; the durable provider represents that as an empty
170+
// object in its raw protocol envelope.
171171
bare := env.runCloudCLI(t, "durable", "start", "order-pipeline")
172172
bare.requireSuccess(t, "started")
173173
bareExecutionID := apiE2EDurableExecutionID(t, bare.output)
174174
env.waitForCloudCLIContains(t, apiE2EDurableExecutionTimeout, "Status: succeeded",
175175
"durable", "executions", "get", "order-pipeline", bareExecutionID)
176176
env.runCloudCLI(t, "durable", "executions", "get", "order-pipeline", bareExecutionID).
177-
requireSuccess(t, `"echoed": null`)
177+
requireSuccess(t, `"echoed": "{}"`)
178178
}
179179

180180
// requireAPIE2EDurableExecutionPages covers --page and --limit on the execution

0 commit comments

Comments
 (0)