Add missing optional option on the check that captures the reward

This shouldn't be an error, it's an expected situation as described in the article.
This commit is contained in:
Stephane Landelle 2020-09-06 23:34:37 +02:00
parent b2643fc0dd
commit a3626ba16c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class RewardsScenario extends Simulation {
.exec(http("get_reward")
.get("/rewards/find/${custId}")
.check(jsonPath("$.id").saveAs("rwdId")))
.check(jsonPath("$.id").optional.saveAs("rwdId")))
.pause(1)
.doIf("${rwdId.isUndefined()}"){