Skip to content

Commit

Permalink
fix: response handler in retry
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep committed Dec 12, 2024
1 parent 758678c commit 5e6b1f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pactum",
"version": "3.7.4",
"version": "3.7.5",
"description": "REST API Testing Tool for all levels in a Test Pyramid",
"main": "./src/index.js",
"types": "./src/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/models/Tosser.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ class Tosser {
log.info(`Request retry initiated, waiting ${delay / 1000} ${scale} for attempt ${i + 1} of ${count}`);
await helper.sleep(delay);
this.response = await getResponse(this);
this.spec._response = this.response;
await th.runResponseHandler(this.spec);
} else {
break;
}
Expand Down

0 comments on commit 5e6b1f1

Please sign in to comment.