File tree 2 files changed +3
-4
lines changed
dynamodb/step_definitions
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,9 @@ Given("my first request is corrupted with CRC checking (ON|OFF)", function (
199
199
} ) ;
200
200
201
201
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 )
203
203
callback ( new Error ( "Request was incorrectly retried" ) ) ;
204
- if ( ! retry && this . response . retryCount == 0 )
204
+ if ( ! retry && this . data . $metadata . retries == 0 )
205
205
callback ( new Error ( "Request was incorrectly retried" ) ) ;
206
206
callback ( ) ;
207
207
} ) ;
@@ -224,7 +224,7 @@ Given("all of my requests are corrupted with CRC checking ON", function (
224
224
} ) ;
225
225
226
226
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 )
228
228
callback ( new Error ( "Incorrect retry count" ) ) ;
229
229
callback ( ) ;
230
230
} ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ module.exports = {
69
69
if ( typeof svc === "string" ) svc = this [ svc ] ;
70
70
71
71
svc [ operation ] ( params , function ( err , data ) {
72
- world . response = this ;
73
72
world . error = err ;
74
73
world . data = data ;
75
74
You can’t perform that action at this time.
0 commit comments