mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix blinking test
This commit is contained in:
@@ -554,4 +554,16 @@ public class DocumentCommitThread extends DocumentCommitProcessor implements Run
|
||||
boolean isEnabled() {
|
||||
return myEnabled;
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public void waitUntilAllCommitted() throws InterruptedException {
|
||||
if (!myEnabled) {
|
||||
throw new IllegalStateException("DocumentCommitThread is disabled");
|
||||
}
|
||||
synchronized (documentsToCommit) {
|
||||
while(!documentsToCommit.isEmpty()) {
|
||||
documentsToCommit.wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user