From c2a705810d93c71e43a629a91d66c1ba36cbeeff Mon Sep 17 00:00:00 2001 From: Mehmet Emin Karaman Date: Mon, 2 Dec 2024 13:45:42 +0100 Subject: [PATCH] Testfailure fix for MacOS and cleanup --- .../editor/DirtyStateEditorSupportIntegrationTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java b/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java index a0cbb6890ef..271e8bc89f6 100644 --- a/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java +++ b/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java @@ -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(); @@ -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()); } /**