Skip to content

Commit

Permalink
small modification to java sample
Browse files Browse the repository at this point in the history
  • Loading branch information
claire921 committed Nov 28, 2023
1 parent dab38f6 commit 7a51d2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,6 +23,7 @@
import org.junit.Test;

public class CreateInstanceWithAutoscalingConfigSampleIT extends SampleTestBase {

@Test
public void testCreateInstanceWithAutoscalingConfig() throws Exception {
String instanceId = String.format("autoscaler-%s", UUID.randomUUID());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,6 +47,7 @@ public static void beforeClass() {
final String serverUrl = "";
final SpannerOptions.Builder optionsBuilder = SpannerOptions
.newBuilder()
.setProjectId("span-cloud-testing")
.setAutoThrottleAdministrativeRequests();
if (!serverUrl.isEmpty()) {
optionsBuilder.setHost(serverUrl);
Expand Down

0 comments on commit 7a51d2a

Please sign in to comment.