File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
samples/snippets/src/test/java/com/example/spanner Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2525import java .io .PrintStream ;
2626import java .util .Collections ;
2727import java .util .UUID ;
28+ import java .util .concurrent .ExecutionException ;
2829import org .junit .After ;
2930import org .junit .AfterClass ;
3031import org .junit .Before ;
@@ -49,12 +50,12 @@ public class QuickstartSampleIT {
4950 private PrintStream out ;
5051
5152 @ BeforeClass
52- public static void createDatabase () {
53+ public static void createDatabase () throws InterruptedException , ExecutionException {
5354 final SpannerOptions options =
5455 SpannerOptions .newBuilder ().setAutoThrottleAdministrativeRequests ().build ();
5556 spanner = options .getService ();
5657 dbClient = spanner .getDatabaseAdminClient ();
57- dbClient .createDatabase (instanceId , dbId , Collections .emptyList ());
58+ dbClient .createDatabase (instanceId , dbId , Collections .emptyList ()). get () ;
5859 }
5960
6061 @ AfterClass
You can’t perform that action at this time.
0 commit comments