Skip to content
Snippets Groups Projects
Verified Commit c7787120 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix test

parent b83df3ac
Branches
Tags
1 merge request!21Release v0.4.0
......@@ -102,7 +102,7 @@ public class DatabaseAccessManagerTest {
wt1.notify();
}
synchronized (this) {
this.wait(500);
this.wait(1000);
}
// wt2 reserves write access as wt1 released it now.
Assert.assertEquals(wt1.getState(), Thread.State.TERMINATED);
......@@ -170,11 +170,11 @@ public class DatabaseAccessManagerTest {
// read access should still be blocked.
final ReadThread rt1 = new ReadThread("rt1");
rt1.start();
Assert.assertEquals(rt1.getState(), Thread.State.BLOCKED);
synchronized (this) {
this.wait(500);
}
Assert.assertEquals(rt1.getState(), Thread.State.WAITING);
synchronized (wt2) {
wt2.notify();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment