提交 335cbd85 authored 作者: Noel Grandin's avatar Noel Grandin

workaround periodic testBinaryTypes failure

上级 b3392273
...@@ -363,11 +363,14 @@ public class TestPgServer extends TestBase { ...@@ -363,11 +363,14 @@ public class TestPgServer extends TestBase {
} }
} }
private void testBinaryTypes() throws SQLException { private void testBinaryTypes() throws SQLException, InterruptedException {
if (!getPgJdbcDriver()) { if (!getPgJdbcDriver()) {
return; return;
} }
// Sometimes the previous pg server has not finished shutting and we get "port in use", so sleep for a bit.
Thread.sleep(100);
Server server = Server.createPgServer( Server server = Server.createPgServer(
"-pgPort", "5535", "-pgDaemon", "-key", "pgserver", "mem:pgserver"); "-pgPort", "5535", "-pgDaemon", "-key", "pgserver", "mem:pgserver");
server.start(); server.start();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论