From 37ee5d5a41c99cddae0652d839539df91f28f35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 2 Sep 2020 20:42:26 +0100 Subject: [PATCH] blind fix for testTdf130685 intermittent failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If6f330ebbe63a5438769fda771d68afb1dcadf2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101977 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/qa/extras/uiwriter/uiwriter3.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx index b8972d19f7e2..1b7ac397b8e8 100644 --- a/sw/qa/extras/uiwriter/uiwriter3.cxx +++ b/sw/qa/extras/uiwriter/uiwriter3.cxx @@ -802,13 +802,16 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf130685) // Without fix in place, this test would have failed with: //- Expected: 2 //- Actual : 4 + Scheduler::ProcessEventsToIdle(); CPPUNIT_ASSERT_EQUAL(2, getPages()); dispatchCommand(mxComponent, ".uno:Undo", {}); dispatchCommand(mxComponent, ".uno:Undo", {}); + Scheduler::ProcessEventsToIdle(); CPPUNIT_ASSERT_EQUAL(1, getPages()); dispatchCommand(mxComponent, ".uno:Undo", {}); + Scheduler::ProcessEventsToIdle(); CPPUNIT_ASSERT_EQUAL(2, getPages()); }