提交 c5d039fb authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix test case

上级 0c340300
...@@ -71,7 +71,7 @@ public class TestConcurrent extends TestMVStore { ...@@ -71,7 +71,7 @@ public class TestConcurrent extends TestMVStore {
s.close(); s.close();
// sometimes closing works, in which case // sometimes closing works, in which case
// storing fails at some point // storing fails at some point
Thread.sleep(1000); Thread.sleep(100);
Exception e = task.getException(); Exception e = task.getException();
assertEquals(DataUtils.ERROR_CLOSED, assertEquals(DataUtils.ERROR_CLOSED,
DataUtils.getErrorCode(e.getMessage())); DataUtils.getErrorCode(e.getMessage()));
...@@ -80,6 +80,7 @@ public class TestConcurrent extends TestMVStore { ...@@ -80,6 +80,7 @@ public class TestConcurrent extends TestMVStore {
// closing fails // closing fails
assertEquals(DataUtils.ERROR_WRITING_FAILED, assertEquals(DataUtils.ERROR_WRITING_FAILED,
DataUtils.getErrorCode(e.getMessage())); DataUtils.getErrorCode(e.getMessage()));
task.get();
} }
s.close(); s.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论