Skip to content

Commit 49f7693

Browse files
committed
fix: flaky test
1 parent 9ec94d1 commit 49f7693

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/WriteApiTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,27 +331,27 @@ public function testRetryBackoffTime()
331331
$retry = new WriteRetry();
332332

333333
$backoff = $retry->getBackoffTime(1);
334-
$this->assertGreaterThan(5000, $backoff);
334+
$this->assertGreaterThanOrEqual(5000, $backoff);
335335
$this->assertLessThanOrEqual(10000, $backoff);
336336

337337
$backoff = $retry->getBackoffTime(2);
338-
$this->assertGreaterThan(10000, $backoff);
338+
$this->assertGreaterThanOrEqual(10000, $backoff);
339339
$this->assertLessThanOrEqual(20000, $backoff);
340340

341341
$backoff = $retry->getBackoffTime(3);
342-
$this->assertGreaterThan(20000, $backoff);
342+
$this->assertGreaterThanOrEqual(20000, $backoff);
343343
$this->assertLessThanOrEqual(40000, $backoff);
344344

345345
$backoff = $retry->getBackoffTime(4);
346-
$this->assertGreaterThan(40000, $backoff);
346+
$this->assertGreaterThanOrEqual(40000, $backoff);
347347
$this->assertLessThanOrEqual(80000, $backoff);
348348

349349
$backoff = $retry->getBackoffTime(5);
350-
$this->assertGreaterThan(80000, $backoff);
350+
$this->assertGreaterThanOrEqual(80000, $backoff);
351351
$this->assertLessThanOrEqual(125000, $backoff);
352352

353353
$backoff = $retry->getBackoffTime(6);
354-
$this->assertGreaterThan(80000, $backoff);
354+
$this->assertGreaterThanOrEqual(80000, $backoff);
355355
$this->assertLessThanOrEqual(125000, $backoff);
356356
}
357357

0 commit comments

Comments
 (0)