File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,10 @@ public void testComplexXML() throws Exception {
145145 editor .getSelectionProvider ().setSelection (new TextSelection (offset , 0 ));
146146 LSContentAssistProcessor processor = new LSContentAssistProcessor ();
147147 proposals = processor .computeCompletionProposals (Utils .getViewer (editor ), offset );
148- DisplayHelper .sleep (editor .getSite ().getShell ().getDisplay (), 2000 );
149- assertTrue (proposals .length > 1 );
148+ assertTrue (DisplayHelper .waitForCondition (editor .getSite ().getShell ().getDisplay (), 10_000 , () -> {
149+ proposals = processor .computeCompletionProposals (Utils .getViewer (editor ), offset );
150+ return proposals != null && proposals .length > 1 ;
151+ }), "Expected at least 2 XML completion proposals" );
150152 }
151153
152154 @ Test
You can’t perform that action at this time.
0 commit comments