fix KeyboardLayoutTest

FAIL!  : KeyboardLayoutTest::testChangeLayoutThroughDBus() '!layoutChangedSpy.wait(1000)' returned FALSE. ()
   Loc: [/home/bam/kde/src/kwin/autotests/integration/keyboard_layout_test.cpp(250)]
This commit is contained in:
Andrey Butirsky 2020-10-20 23:41:43 +03:00
parent 7301564e4f
commit f30ad51bfd

View file

@ -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"));