Skip to content

Commit

Permalink
tests: Increase timeout of individual polling for database creation
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Oct 9, 2024
1 parent de766c4 commit 63b1da5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using Google.Api.Gax;
using Google.Api.Gax.Grpc;
using Google.Api.Gax.ResourceNames;
using Google.Cloud.ClientTesting;
using Google.Cloud.Datastore.Admin.V1;
Expand Down Expand Up @@ -185,7 +186,7 @@ public async Task CreateDatabaseAsync(string databaseId)
new ProjectName(ProjectId),
new Database { LocationId = "northamerica-northeast1", Type = DatabaseType.DatastoreMode },
databaseId);
await operation.PollUntilCompletedAsync(AdminOperationPollSettings);
await operation.PollUntilCompletedAsync(AdminOperationPollSettings, CallSettings.FromExpiration(Expiration.FromTimeout(TimeSpan.FromMinutes(5))));
Console.WriteLine($"Success creating database {databaseId}");
}

Expand Down

0 comments on commit 63b1da5

Please sign in to comment.