提交 0b16695a authored 作者: Noel Grandin's avatar Noel Grandin

fix test case

so that it doesn't cause an exception on travis, although given the
exceptions it is catching, I can't see what it is trying to test
上级 d2a76496
...@@ -11,7 +11,6 @@ import java.sql.SQLException; ...@@ -11,7 +11,6 @@ import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
import org.h2.api.ErrorCode; import org.h2.api.ErrorCode;
import org.h2.test.TestBase; import org.h2.test.TestBase;
import org.h2.util.Task; import org.h2.util.Task;
...@@ -61,7 +60,7 @@ public class TestMvccMultiThreaded extends TestBase { ...@@ -61,7 +60,7 @@ public class TestMvccMultiThreaded extends TestBase {
stat.execute("select * from test where id=1 for update"); stat.execute("select * from test where id=1 for update");
} catch (SQLException e) { } catch (SQLException e) {
int errorCode = e.getErrorCode(); int errorCode = e.getErrorCode();
assertEquals(e.getMessage(), assertTrue(e.getMessage(),
errorCode == ErrorCode.DEADLOCK_1 || errorCode == ErrorCode.DEADLOCK_1 ||
errorCode == ErrorCode.LOCK_TIMEOUT_1); errorCode == ErrorCode.LOCK_TIMEOUT_1);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论