@@ -149,7 +149,7 @@ describe('retry', function () {
149149 eventuallyOkFnCalls . should . equal ( 3 ) ;
150150 res . should . equal ( 9 ) ;
151151 // XXX: flaky
152- ( Date . now ( ) - start ) . should . be . above ( 30 ) ;
152+ ( Date . now ( ) - start ) . should . be . least ( 30 ) ;
153153 } ) ;
154154 it ( 'should not wait on the final error' , async function ( ) {
155155 const start = Date . now ( ) ;
@@ -182,7 +182,7 @@ describe('nodeifyAll', function () {
182182 should . not . exist ( err ) ;
183183 should . not . exist ( val2 ) ;
184184 val . should . equal ( 'foo' ) ;
185- ( Date . now ( ) - start ) . should . be . above ( 14 ) ;
185+ ( Date . now ( ) - start ) . should . be . least ( 14 ) ;
186186 done ( ) ;
187187 } ) ;
188188 } ) ;
@@ -192,7 +192,7 @@ describe('nodeifyAll', function () {
192192 should . not . exist ( err ) ;
193193 should . not . exist ( val2 ) ;
194194 val . should . equal ( 'foo' ) ;
195- ( Date . now ( ) - start ) . should . be . above ( 14 ) ;
195+ ( Date . now ( ) - start ) . should . be . least ( 14 ) ;
196196 done ( ) ;
197197 } ) ;
198198 } ) ;
@@ -201,7 +201,7 @@ describe('nodeifyAll', function () {
201201 nodeify ( asyncFn2 ( 'foo' ) , function ( err , val ) { // eslint-disable-line promise/prefer-await-to-callbacks
202202 should . not . exist ( err ) ;
203203 val . should . eql ( [ 'foo' , 'foofoo' ] ) ;
204- ( Date . now ( ) - start ) . should . be . above ( 14 ) ;
204+ ( Date . now ( ) - start ) . should . be . least ( 14 ) ;
205205 done ( ) ;
206206 } ) ;
207207 } ) ;
@@ -210,7 +210,7 @@ describe('nodeifyAll', function () {
210210 nodeify ( badAsyncFn ( 'foo' ) , function ( err , val ) { // eslint-disable-line promise/prefer-await-to-callbacks
211211 should . not . exist ( val ) ;
212212 err . message . should . equal ( 'boo' ) ;
213- ( Date . now ( ) - start ) . should . be . above ( 14 ) ;
213+ ( Date . now ( ) - start ) . should . be . least ( 14 ) ;
214214 done ( ) ;
215215 } ) ;
216216 } ) ;
@@ -307,7 +307,7 @@ describe('parallel', function () {
307307 }
308308 await ( waitForCondition ( condFn , { waitMs : 20 , intervalMs : 10 } ) ) ;
309309 let getLastCall = requestSpy . getCall ( 1 ) ;
310- getLastCall . args [ 0 ] . should . be . below ( 10 ) ;
310+ getLastCall . args [ 0 ] . should . be . most ( 10 ) ;
311311 } ) ;
312312 } ) ;
313313} ) ;
@@ -321,12 +321,12 @@ describe('asyncmap', function () {
321321 it ( 'should map elements one at a time' , async function ( ) {
322322 let start = Date . now ( ) ;
323323 ( await asyncmap ( coll , mapper , false ) ) . should . eql ( [ 2 , 4 , 6 ] ) ;
324- ( Date . now ( ) - start ) . should . be . above ( 30 ) ;
324+ ( Date . now ( ) - start ) . should . be . least ( 30 ) ;
325325 } ) ;
326326 it ( 'should map elements in parallel' , async function ( ) {
327327 let start = Date . now ( ) ;
328328 ( await asyncmap ( coll , mapper ) ) . should . eql ( [ 2 , 4 , 6 ] ) ;
329- ( Date . now ( ) - start ) . should . be . below ( 20 ) ;
329+ ( Date . now ( ) - start ) . should . be . most ( 20 ) ;
330330 } ) ;
331331 it ( 'should handle an empty array' , async function ( ) {
332332 ( await asyncmap ( [ ] , mapper , false ) ) . should . eql ( [ ] ) ;
0 commit comments