File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,15 @@ module.exports = {
40
40
if ( ! options . backoff ) options . backoff = 500 ;
41
41
if ( ! options . maxTime ) options . maxTime = 5 ;
42
42
43
- const delay = options . delay ;
44
- //TODO: apply clock offset
45
- const started = new Date ( ) ;
43
+ let delay = options . delay ;
44
+ const started = Date . now ( ) ;
46
45
47
46
const self = this ;
48
47
const retry = function ( ) {
49
48
callback ( ) ;
50
49
} ;
51
50
retry . fail = function ( err ) {
52
- const now = self . AWS . util . date . getDate ( ) ;
51
+ const now = Date . now ( ) ;
53
52
if ( now - started < options . maxTime * 1000 ) {
54
53
setTimeout ( function ( ) {
55
54
delay += options . backoff ;
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Then("list queues should eventually return the queue urls", function (callback)
23
23
}
24
24
return matchingCount == this . createdQueues . length ;
25
25
} ;
26
+
26
27
this . request ( null , "listQueues" , { } , next ) ;
27
28
} ,
28
29
{ maxTime : 60 }
You can’t perform that action at this time.
0 commit comments