File tree
Expand file treeCollapse file tree1 file changed
+3
-2
lines changed samples/snippets/src/test/java/com/example/spanner
Expand file treeCollapse file tree1 file changed
+3
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
|
25 | 25 | import java.io.PrintStream;
|
26 | 26 | import java.util.Collections;
|
27 | 27 | import java.util.UUID;
|
| 28 | +import java.util.concurrent.ExecutionException; |
28 | 29 | import org.junit.After;
|
29 | 30 | import org.junit.AfterClass;
|
30 | 31 | import org.junit.Before;
|
@@ -49,12 +50,12 @@ public class QuickstartSampleIT {
|
49 | 50 | private PrintStream out;
|
50 | 51 |
|
51 | 52 | @BeforeClass
|
52 |
| -public static void createDatabase() { |
| 53 | +public static void createDatabase() throws InterruptedException, ExecutionException { |
53 | 54 | final SpannerOptions options =
|
54 | 55 | SpannerOptions.newBuilder().setAutoThrottleAdministrativeRequests().build();
|
55 | 56 | spanner = options.getService();
|
56 | 57 | dbClient = spanner.getDatabaseAdminClient();
|
57 |
| -dbClient.createDatabase(instanceId, dbId, Collections.emptyList()); |
| 58 | +dbClient.createDatabase(instanceId, dbId, Collections.emptyList()).get(); |
58 | 59 | }
|
59 | 60 |
|
60 | 61 | @AfterClass
|
|
You can’t perform that action at this time.
0 commit comments