Skip to content

Commit

Permalink
Merge pull request #3275 from mehmet-karaman/Fix_flaky_test_macos_for…
Browse files Browse the repository at this point in the history
…_refresh_editor_on_sync

Testfailure fix for MacOS (DirtyStateEditorSupportIntegrationTest)
  • Loading branch information
LorenzoBettini authored Dec 4, 2024
2 parents ae9a1a1 + c2a7058 commit 8190316
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 8190316

Please sign in to comment.