mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-12 15:59:58 -05:00
TestGui: testTotp: use QTRY_COMPARE
That test failed, presumably because of inherent raciness: https://ci.keepassxc.org/buildConfiguration/KeePassXC_MacOS/248424?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false&expandBuildChangesSection=true&expandBuildProblemsSection=true&showLog=248423_1081_942&logFilter=debug&logView=flowAware Paper over the raciness by using QTRY_COMPARE instead of QCOMPARE.
This commit is contained in:
parent
647272e9c5
commit
af2ba798a0
@ -1030,7 +1030,7 @@ void TestGui::testTotp()
|
||||
auto* totpDialog = m_dbWidget->findChild<TotpDialog*>("TotpDialog");
|
||||
auto* totpLabel = totpDialog->findChild<QLabel*>("totpLabel");
|
||||
|
||||
QCOMPARE(totpLabel->text().replace(" ", ""), entry->totp());
|
||||
QTRY_COMPARE(totpLabel->text().replace(" ", ""), entry->totp());
|
||||
QTest::keyClick(totpDialog, Qt::Key_Escape);
|
||||
|
||||
// Test the QR code
|
||||
|
Loading…
Reference in New Issue
Block a user