Skip to content

Commit

Permalink
Testfailure fix for MacOS and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-karaman committed Dec 2, 2024
1 parent 4eebe72 commit c2a7058
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void testUndoRedo() throws Exception {

Display.getDefault().readAndDispatch();

assertNotEquals(document.get(), "");
assertNotEquals("", document.get());
assertTrue(editor.getDocumentProvider() instanceof FileDocumentProvider);

FileDocumentProvider fileDocumentProvider = (FileDocumentProvider)editor.getDocumentProvider();
Expand All @@ -152,7 +152,10 @@ public void testUndoRedo() throws Exception {
Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_REFRESH, null);
syncUtil.yieldToQueuedDisplayJobs(new NullProgressMonitor());

assertEquals(document.get(), "");
// This was added to avoid flakyness for testing on mac os
syncUtil.waitForReconciler(editor);

assertEquals("", document.get());
}

/**
Expand Down

0 comments on commit c2a7058

Please sign in to comment.