autotests: Fix a typo in testKeyboardShortcutsInhibitorInterface

We need to monitor whether the inhibitorActive signal gets emitted. It
reduces the test's execution time from about 5 seconds to a couple
milliseconds.
This commit is contained in:
Vlad Zahorodnii 2023-01-11 22:00:04 +02:00
parent b4e8d44967
commit fe1054a52a

View file

@ -189,7 +189,7 @@ void TestKeyboardShortcutsInhibitorInterface::testKeyboardShortcuts()
// Test activate
inhibitorServer->setActive(true);
QVERIFY(inhibitorInactiveSpy.wait() || inhibitorInactiveSpy.count() == 1);
QVERIFY(inhibitorActiveSpy.wait() || inhibitorActiveSpy.count() == 1);
// Test creating for another surface
m_inhibitManagerClient->inhibit_shortcuts(m_clientSurfaces[1], m_clientSeat->operator wl_seat *());