Skip to content

Commit 1147e0d

Browse files
authored
chore: remove unused world.response from integ tests (#1091)
1 parent 3a790b2 commit 1147e0d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

features/dynamodb/step_definitions/dynamodb.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ Given("my first request is corrupted with CRC checking (ON|OFF)", function (
199199
});
200200

201201
Then("the request should( not)? be retried", function (retry, callback) {
202-
if (retry && this.response.retryCount > 0)
202+
if (retry && this.data.$metadata.retries > 0)
203203
callback(new Error("Request was incorrectly retried"));
204-
if (!retry && this.response.retryCount == 0)
204+
if (!retry && this.data.$metadata.retries == 0)
205205
callback(new Error("Request was incorrectly retried"));
206206
callback();
207207
});
@@ -224,7 +224,7 @@ Given("all of my requests are corrupted with CRC checking ON", function (
224224
});
225225

226226
When("the request is retried the maximum number of times", function (callback) {
227-
if (this.response.retryCount != 2)
227+
if (this.data.$metadata.retries != 2)
228228
callback(new Error("Incorrect retry count"));
229229
callback();
230230
});

features/extra/helpers.js

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ module.exports = {
6969
if (typeof svc === "string") svc = this[svc];
7070

7171
svc[operation](params, function (err, data) {
72-
world.response = this;
7372
world.error = err;
7473
world.data = data;
7574

0 commit comments

Comments
 (0)