提交 997651be authored 作者: Noel Grandin's avatar Noel Grandin

fix test in multithreaded mode

上级 ed501cd4
......@@ -578,8 +578,10 @@ public class TestMetaData extends TestBase {
Connection.TRANSACTION_NONE));
assertTrue(meta.supportsTransactionIsolationLevel(
Connection.TRANSACTION_READ_COMMITTED));
assertTrue(meta.supportsTransactionIsolationLevel(
Connection.TRANSACTION_READ_UNCOMMITTED));
if (!config.multiThreaded) {
assertTrue(meta.supportsTransactionIsolationLevel(
Connection.TRANSACTION_READ_UNCOMMITTED));
}
assertTrue(meta.supportsTransactionIsolationLevel(
Connection.TRANSACTION_REPEATABLE_READ));
assertTrue(meta.supportsTransactionIsolationLevel(
......
......@@ -127,7 +127,7 @@ public class TestMvcc4 extends TestBase {
*
* @param t the thread
*/
static void waitForThreadToBlockOnDB(Thread t) {
void waitForThreadToBlockOnDB(Thread t) {
while (true) {
// sleep the first time through the loop so we give the main thread a chance
try {
......@@ -141,7 +141,7 @@ public class TestMvcc4 extends TestBase {
StackTraceElement[] elements = threadMap.get(t);
if (elements != null
&& elements.length > 1
&& "wait".equals(elements[0].getMethodName())
&& (config.multiThreaded ? "sleep".equals(elements[0].getMethodName()) : "wait".equals(elements[0].getMethodName()))
&& "filterConcurrentUpdate".equals(elements[1].getMethodName())) {
return;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论