提交 d77615bb authored 作者: Noel Grandin's avatar Noel Grandin

fix testDatabaseUsingInMemoryFileSystem

上级 335cbd85
...@@ -103,7 +103,9 @@ public class TestOutOfMemory extends TestBase { ...@@ -103,7 +103,9 @@ public class TestOutOfMemory extends TestBase {
conn.close(); conn.close();
fail(); fail();
} catch (SQLException e) { } catch (SQLException e) {
assertEquals(ErrorCode.GENERAL_ERROR_1, e.getErrorCode()); int err = e.getErrorCode();
assertTrue(e.getMessage(), err == ErrorCode.GENERAL_ERROR_1
|| err == ErrorCode.OUT_OF_MEMORY);
} }
conn = DriverManager.getConnection(url); conn = DriverManager.getConnection(url);
stat = conn.createStatement(); stat = conn.createStatement();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论