Skip to content

Commit

Permalink
fix: flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Sep 30, 2022
1 parent b66a559 commit 7906425
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/WriteApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,27 +332,27 @@ public function testRetryBackoffTime()

$backoff = $retry->getBackoffTime(1);
$this->assertGreaterThan(5000, $backoff);
$this->assertLessThan(10000, $backoff);
$this->assertLessThanOrEqual(10000, $backoff);

$backoff = $retry->getBackoffTime(2);
$this->assertGreaterThan(10000, $backoff);
$this->assertLessThan(20000, $backoff);
$this->assertLessThanOrEqual(20000, $backoff);

$backoff = $retry->getBackoffTime(3);
$this->assertGreaterThan(20000, $backoff);
$this->assertLessThan(40000, $backoff);
$this->assertLessThanOrEqual(40000, $backoff);

$backoff = $retry->getBackoffTime(4);
$this->assertGreaterThan(40000, $backoff);
$this->assertLessThan(80000, $backoff);
$this->assertLessThanOrEqual(80000, $backoff);

$backoff = $retry->getBackoffTime(5);
$this->assertGreaterThan(80000, $backoff);
$this->assertLessThan(125000, $backoff);
$this->assertLessThanOrEqual(125000, $backoff);

$backoff = $retry->getBackoffTime(6);
$this->assertGreaterThan(80000, $backoff);
$this->assertLessThan(125000, $backoff);
$this->assertLessThanOrEqual(125000, $backoff);
}

public function testConnectExceptionRetry()
Expand Down

0 comments on commit 7906425

Please sign in to comment.