tst_qitemdelegate: make it more robust
Remove a processEvents() call followed by a QCOMPARE and turn it into a QTRY_COMPARE. Otherwise it seems to be randomly failing on Ubuntu 22.04. Change-Id: I3c1b9d55c857c79ffd36aeb98971db60267adace Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
0b5b98c4ae
commit
45b09215e5
@ -357,9 +357,8 @@ void tst_QItemDelegate::editorKeyPress()
|
||||
|
||||
QTest::keyClicks(editor, expected);
|
||||
QTest::keyClick(editor, Qt::Key_Enter);
|
||||
QApplication::processEvents();
|
||||
|
||||
QCOMPARE(index.data().toString(), expected);
|
||||
QTRY_COMPARE(index.data().toString(), expected);
|
||||
}
|
||||
|
||||
void tst_QItemDelegate::doubleEditorNegativeInput()
|
||||
|
Loading…
x
Reference in New Issue
Block a user