Rebased
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:
committed by
Michael Minella
parent
1786732b40
commit
ce51987f98
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user