提交 5b6bf351 authored 作者: Noel Grandin's avatar Noel Grandin

try to prevent "port may be in use" error

that I see on travis CI
上级 9715864f
......@@ -35,7 +35,7 @@ public class TestAutoReconnect extends TestBase {
TestBase.createCaller().init().test();
}
private void restart() throws SQLException {
private void restart() throws SQLException, InterruptedException {
if (autoServer) {
if (connServer != null) {
connServer.createStatement().execute("SHUTDOWN");
......@@ -45,6 +45,7 @@ public class TestAutoReconnect extends TestBase {
connServer = getConnection(url);
} else {
server.stop();
Thread.sleep(100); // try to prevent "port may be in use" error
server.start();
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论