Skip to content

Commit

Permalink
fix: set spanner.emulator property in test
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Sep 2, 2024
1 parent 459305a commit efd2c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class ApplicationEmulatorTest {

@Test
public void testRunApplicationOnEmulator() {
System.setProperty("spanner.emulator", "true");
Application.main(new String[] {});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.springframework.boot.SpringApplication;

@RunWith(JUnit4.class)
public class ApplicationTest extends AbstractMockServerTest {
Expand Down Expand Up @@ -874,7 +873,7 @@ public void testRunApplication() {
System.setProperty("spanner.emulator", "false");
System.setProperty("spanner.endpoint", "//localhost:" + getPort());
System.setProperty("spanner.additional_properties", "usePlainText=true");
SpringApplication.run(Application.class).close();
Application.main(new String[] {});

assertEquals(
40,
Expand Down

0 comments on commit efd2c74

Please sign in to comment.