Skip to content

Commit

Permalink
#98 Error on arg length mismatch and timedout (#397)
Browse files Browse the repository at this point in the history
* #98 Error on arg length mismatch and timedout

Signed-off-by: NivedhaSenthil <[email protected]>

* update arg mismatch message

Signed-off-by: NivedhaSenthil <[email protected]>

* Bump  version to 2.3.13

Signed-off-by: NivedhaSenthil <[email protected]>
  • Loading branch information
NivedhaSenthil authored Oct 12, 2020
1 parent 62baa43 commit a1d858a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"--init"
]
},
"version": "2.3.12",
"version": "2.3.13",
"gaugeVersionSupport": {
"minimum": "1.0.7",
"maximum": ""
Expand Down
2 changes: 1 addition & 1 deletion 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": "gauge-js",
"version": "2.3.12",
"version": "2.3.13",
"description": "JavaScript runner for Gauge",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ var resetTimeout = function () {
clearTimeout(self.timer);
}
self.timer = setTimeout(function () {
done.apply(self, [new Error("Timed out")]);
const errorMsg = self.async ? "Timed out. Number of parameters in the step do not match the number of arguments in the step definition." : "Timed out";
done.apply(self, [new Error(errorMsg)]);
self.timedOut = true;
}, self.ms);
};
Expand Down

0 comments on commit a1d858a

Please sign in to comment.