Skip to content

TestGui: testTotp: use QTRY_COMPARE#10901

Merged
droidmonkey merged 1 commit intokeepassxreboot:developfrom
c4rlo:testgui-totp-try
Jun 14, 2024
Merged

TestGui: testTotp: use QTRY_COMPARE#10901
droidmonkey merged 1 commit intokeepassxreboot:developfrom
c4rlo:testgui-totp-try

Conversation

@c4rlo
Copy link
Copy Markdown
Contributor

@c4rlo c4rlo commented Jun 14, 2024

A check in TestGui::testTotp failed in #10853, presumably because of inherent raciness:

20:28:37   FAIL!  : TestGui::testTotp() Compared values are not the same
20:28:37      Actual   (totpLabel->text().replace(" ", "")): "625751"
20:28:37      Expected (entry->totp())                     : "067152"
20:28:37      Loc: [/Users/KPXC/buildAgent/work/c401303cba1b4098/tests/gui/TestGui.cpp(1033)]

Paper over the raciness by using QTRY_COMPARE instead of QCOMPARE.

@droidmonkey droidmonkey merged commit af2ba79 into keepassxreboot:develop Jun 14, 2024
@droidmonkey droidmonkey added the pr: tests Pull request adds or modifies tests label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: tests Pull request adds or modifies tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants