提交 8876648b authored 作者: Thomas Mueller's avatar Thomas Mueller

Improve test case.

上级 b659edb9
...@@ -249,8 +249,7 @@ public class TestCluster extends TestBase { ...@@ -249,8 +249,7 @@ public class TestCluster extends TestBase {
} }
ResultSet rs = conn.createStatement().executeQuery( ResultSet rs = conn.createStatement().executeQuery(
"SELECT VALUE FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME='CLUSTER'"); "SELECT VALUE FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME='CLUSTER'");
rs.next(); String cluster = rs.next() ? rs.getString(1) : "''";
String cluster = rs.getString(1);
assertEquals(expectedCluster, cluster); assertEquals(expectedCluster, cluster);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论