Skip to content

Commit

Permalink
ci: reduce spanner CreateInstance rpcs in daily build
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc committed Jul 12, 2024
1 parent e353a33 commit 66a0da6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,9 @@ TEST_F(InstanceAdminClientTest, InstanceCRUDOperations) {
}

TEST_F(InstanceAdminClientTest, CreateInstanceStartAwait) {
if (!Emulator() && !RunSlowInstanceTests()) {
GTEST_SKIP() << "skipping slow instance tests; set "
<< "GOOGLE_CLOUD_CPP_SPANNER_SLOW_INTEGRATION_TESTS=instance"
<< " to override";
if (!Emulator()) {
GTEST_SKIP() << "skipping, as there is a quota on CreateInstance requests "
"against production.";
}

Instance in(ProjectId(), spanner_testing::RandomInstanceName(generator_));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,9 @@ TEST_F(InstanceAdminClientRestTest, InstanceCRUDOperations) {
}

TEST_F(InstanceAdminClientRestTest, CreateInstanceStartAwait) {
if (!Emulator() && !RunSlowInstanceTests()) {
GTEST_SKIP() << "skipping slow instance tests; set "
<< "GOOGLE_CLOUD_CPP_SPANNER_SLOW_INTEGRATION_TESTS=instance"
<< " to override";
if (!Emulator()) {
GTEST_SKIP() << "skipping, as there is a quota on CreateInstance requests "
"against production.";
}

Instance in(ProjectId(), spanner_testing::RandomInstanceName(generator_));
Expand Down

0 comments on commit 66a0da6

Please sign in to comment.