We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6046b18 commit 76b3260Copy full SHA for 76b3260
tests/RetryOnExceptionTest.php
@@ -4,7 +4,7 @@
4
5
use PHPUnit\Framework\TestCase;
6
use YdbPlatform\Ydb\Auth\Implement\AnonymousAuthentication;
7
-use YdbPlatform\Ydb\Exceptions\RetryableException;
+use YdbPlatform\Ydb\Exceptions\Grpc\ResourceExhaustedException;
8
use YdbPlatform\Ydb\Retry\RetryParams;
9
use YdbPlatform\Ydb\Session;
10
use YdbPlatform\Ydb\Table;
@@ -74,7 +74,7 @@ private function retryTest(Table $table)
74
$i = 0;
75
$table->retryTransaction(function (Session $session) use (&$i) {
76
if($i == 0){
77
- throw new RetryableException('Test exception');
+ throw new ResourceExhaustedException('Test exception');
78
}
79
self::assertEquals(5, $i);
80
}, null, null, [
0 commit comments