File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 17
17
package com .google .cloud .spanner ;
18
18
19
19
import static com .google .common .base .Preconditions .checkState ;
20
+ import static org .junit .Assume .assumeFalse ;
20
21
21
22
import com .google .api .client .util .ExponentialBackOff ;
22
23
import com .google .api .gax .longrunning .OperationFuture ;
26
27
import com .google .cloud .spanner .testing .RemoteSpannerHelper ;
27
28
import com .google .common .collect .Iterators ;
28
29
import com .google .spanner .admin .instance .v1 .CreateInstanceMetadata ;
30
+ import java .util .Objects ;
29
31
import java .util .Random ;
30
32
import java .util .concurrent .ExecutionException ;
31
33
import java .util .concurrent .TimeUnit ;
@@ -89,9 +91,17 @@ protected void initializeConfig()
89
91
config = configClass .newInstance ();
90
92
}
91
93
94
+ boolean isCloudDevel () {
95
+ return Objects .equals (
96
+ System .getProperty ("spanner.gce.config.server_url" ),
97
+ "https://staging-wrenchworks.sandbox.googleapis.com" );
98
+ }
99
+
92
100
@ Override
93
101
protected void before () throws Throwable {
94
102
this .initializeConfig ();
103
+ assumeFalse (alwaysCreateNewInstance && isCloudDevel ());
104
+
95
105
this .config .setUp ();
96
106
97
107
SpannerOptions options = config .spannerOptions ();
You can’t perform that action at this time.
0 commit comments