diff --git a/tests/Backend/Workspaces/Backend/BigqueryWorkspaceBackend.php b/tests/Backend/Workspaces/Backend/BigqueryWorkspaceBackend.php index c249eeaa5..28b1c8d88 100644 --- a/tests/Backend/Workspaces/Backend/BigqueryWorkspaceBackend.php +++ b/tests/Backend/Workspaces/Backend/BigqueryWorkspaceBackend.php @@ -17,6 +17,7 @@ use Keboola\TableBackendUtils\Table\Bigquery\BigqueryTableReflection; use Keboola\TableBackendUtils\View\ViewReflectionInterface; use PDO; +use Retry\RetryProxy; class BigqueryWorkspaceBackend implements WorkspaceBackend { @@ -218,7 +219,11 @@ protected function isTableExists(string $schema, string $table): bool $dataset = $this->bqClient->dataset($schema); $table = $dataset->table($table); - return $table->exists(); + $exists = (new RetryProxy())->call(function () use ($table) { + return $table->exists(); + }); + assert(is_bool($exists)); + return $exists; } public function dropViewIfExists(string $table): void