Skip to content

Commit 76b3260

Browse files
author
Илья
committed
Update test
1 parent 6046b18 commit 76b3260

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/RetryOnExceptionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPUnit\Framework\TestCase;
66
use YdbPlatform\Ydb\Auth\Implement\AnonymousAuthentication;
7-
use YdbPlatform\Ydb\Exceptions\RetryableException;
7+
use YdbPlatform\Ydb\Exceptions\Grpc\ResourceExhaustedException;
88
use YdbPlatform\Ydb\Retry\RetryParams;
99
use YdbPlatform\Ydb\Session;
1010
use YdbPlatform\Ydb\Table;
@@ -74,7 +74,7 @@ private function retryTest(Table $table)
7474
$i = 0;
7575
$table->retryTransaction(function (Session $session) use (&$i) {
7676
if($i == 0){
77-
throw new RetryableException('Test exception');
77+
throw new ResourceExhaustedException('Test exception');
7878
}
7979
self::assertEquals(5, $i);
8080
}, null, null, [

0 commit comments

Comments
 (0)