From f30ad51bfd6352bd696af9c569d28ca8f1897aea Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Tue, 20 Oct 2020 23:41:43 +0300 Subject: [PATCH] fix KeyboardLayoutTest FAIL! : KeyboardLayoutTest::testChangeLayoutThroughDBus() '!layoutChangedSpy.wait(1000)' returned FALSE. () Loc: [/home/bam/kde/src/kwin/autotests/integration/keyboard_layout_test.cpp(250)] --- autotests/integration/keyboard_layout_test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autotests/integration/keyboard_layout_test.cpp b/autotests/integration/keyboard_layout_test.cpp index 70b6b3a231..3f6ae2f5fc 100644 --- a/autotests/integration/keyboard_layout_test.cpp +++ b/autotests/integration/keyboard_layout_test.cpp @@ -237,10 +237,9 @@ void KeyboardLayoutTest::testChangeLayoutThroughDBus() QVERIFY(!reply.isError()); QCOMPARE(reply.reply().arguments().first().toBool(), true); QCOMPARE(xkb->layoutName(), QStringLiteral("German")); - // FIXME: need to pass -// QVERIFY(layoutChangedSpy.wait(1000)); -// QCOMPARE(layoutChangedSpy.count(), 1); -// layoutChangedSpy.clear(); + QVERIFY(layoutChangedSpy.wait(1000)); + QCOMPARE(layoutChangedSpy.count(), 1); + layoutChangedSpy.clear(); // switching to same layout should also work reply = changeLayout(QStringLiteral("German"));