Updated to spring-cloud-build 2.2.0.BUILD-SNAPSHOT
Updated Tests to support the changes in the latest H2 database
Must use "-ifNotExists", when using the H2 TCP Server
This commit is contained in:
Glenn Renfro
2019-03-12 09:45:46 -04:00
committed by Michael Minella
parent 1786732b40
commit ce51987f98
4 changed files with 8 additions and 7 deletions

View File

@@ -303,8 +303,9 @@ public class TaskStartTests {
Server server = null;
try {
if (defaultServer == null) {
server = Server.createTcpServer("-tcp", "-tcpAllowOthers", "-tcpPort",
String.valueOf(randomPort)).start();
server = Server.createTcpServer("-ifNotExists", "-tcp",
"-tcpAllowOthers", "-tcpPort", String.valueOf(randomPort))
.start();
defaultServer = server;
}
}

View File

@@ -204,8 +204,8 @@ public class TaskLauncherSinkTests {
public Server initH2TCPServer() {
Server server;
try {
server = Server.createTcpServer("-tcp", "-tcpAllowOthers", "-tcpPort",
String.valueOf(randomPort)).start();
server = Server.createTcpServer("-ifNotExists", "-tcp", "-tcpAllowOthers",
"-tcpPort", String.valueOf(randomPort)).start();
}
catch (SQLException e) {
throw new IllegalStateException(e);