@@ -107,13 +107,13 @@ describe("estimate", function () {
107107 // The composite ETA of thenPromise should be now + 100ms (this) +
108108 // 200ms (then).
109109 setTimeout ( function ( ) {
110- expect ( thenPromise . getEstimate ( ) ) . toBeNear ( now + 300 , 10 ) ;
110+ expect ( thenPromise . getEstimate ( ) ) . toBeNear ( now + 300 , 50 ) ;
111111 } , 0 ) ;
112112
113113 // But the actual time of completion will be now + 200ms (this
114114 // actual) + 300ms (fulfilled actual)
115115 setTimeout ( function ( ) {
116- expect ( thenPromise . getEstimate ( ) ) . toBeNear ( now + 500 , 10 ) ;
116+ expect ( thenPromise . getEstimate ( ) ) . toBeNear ( now + 500 , 50 ) ;
117117 done ( ) ;
118118 } , 600 ) ;
119119 } ) ;
@@ -125,7 +125,7 @@ describe("estimate", function () {
125125 it ( "composes initial estimate for all fulfilled values" , function ( ) {
126126 var now = Date . now ( ) ;
127127 var allPromise = Q . all ( [ Q ( ) , Q ( ) , Q ( ) ] ) ;
128- expect ( allPromise . getEstimate ( ) ) . toBeNear ( now , 10 ) ;
128+ expect ( allPromise . getEstimate ( ) ) . toBeNear ( now , 50 ) ;
129129 } ) ;
130130
131131 it ( "composes initial estimate for forever pending values" , function ( ) {
@@ -142,14 +142,14 @@ describe("estimate", function () {
142142 var expected = [ Infinity , now + 10 ] ;
143143 var updates = 0 ;
144144 allPromise . observeEstimate ( function ( estimate ) {
145- expect ( estimate ) . toBeNear ( expected . shift ( ) , 10 ) ;
145+ expect ( estimate ) . toBeNear ( expected . shift ( ) , 100 ) ;
146146 if ( ++ updates === 2 ) {
147147 done ( ) ;
148148 }
149149 } ) ;
150150 setTimeout ( function ( ) {
151151 oneDeferred . resolve ( ) ;
152- } , 10 ) ;
152+ } , 50 ) ;
153153 } ) ;
154154
155155 it ( "composes estimates" , function ( done ) {
@@ -305,7 +305,7 @@ describe("estimate", function () {
305305 var delayedPromise = Q ( ) . delay ( 100 ) ;
306306 var updates = 0 ;
307307 delayedPromise . observeEstimate ( function ( estimate ) {
308- expect ( estimate ) . toBeNear ( now + 100 , 10 ) ;
308+ expect ( estimate ) . toBeNear ( now + 100 , 50 ) ;
309309 if ( ++ updates === 2 ) {
310310 done ( ) ;
311311 }
@@ -335,7 +335,7 @@ describe("estimate", function () {
335335 var thenResolvedPromise = Q ( ) . delay ( 200 ) . thenResolve ( Q ( ) . delay ( 200 ) ) ;
336336 var updates = 0 ;
337337 thenResolvedPromise . observeEstimate ( function ( estimate ) {
338- expect ( estimate ) . toBeNear ( now + 200 , 10 ) ;
338+ expect ( estimate ) . toBeNear ( now + 200 , 50 ) ;
339339 if ( ++ updates === 4 ) {
340340 done ( ) ;
341341 }
0 commit comments