Skip to content

Commit

Permalink
test: remove explicit CreateInstance timeout (#524)
Browse files Browse the repository at this point in the history
Use the default settings for polling long-running operations instead.
This change is made to prevent test flakiness from having too short of a
timeout.
  • Loading branch information
skuruppu committed Oct 22, 2020
1 parent 777f5fc commit 5322c95
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -24,7 +24,6 @@
import com.google.spanner.admin.instance.v1.CreateInstanceMetadata;
import io.grpc.Status;
import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.junit.rules.ExternalResource;
Expand Down Expand Up @@ -126,7 +125,7 @@ private void initializeInstance(InstanceId instanceId) {
instanceAdminClient.createInstance(instance);
Instance createdInstance;
try {
createdInstance = op.get(30000L, TimeUnit.MILLISECONDS);
createdInstance = op.get();
} catch (Exception e) {
boolean cancelled = false;
try {
Expand Down

0 comments on commit 5322c95

Please sign in to comment.