Fix another suspected race condition in test harness

This commit is contained in:
Kris De Volder
2017-02-01 20:07:13 -08:00
parent 363b0c38a3
commit 955139bd57

View File

@@ -391,6 +391,7 @@ public class LanguageServerHarness {
}
public List<? extends Location> getDefinitions(TextDocumentPositionParams params) throws Exception {
server.waitForReconcile(); //goto definitions relies on reconciler infos! Must wait or race condition breaking tests occasionally.
return server.getTextDocumentService().definition(params).get();
}