Skip to content

Commit

Permalink
Fix YubiKey tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
louib authored and louib committed Sep 22, 2019
1 parent 4b19acb commit 15a5a61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/TestCli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,10 @@ void TestCli::testYubiKeyOption()
m_stdoutFile->readLine(); // skip password prompt
m_stderrFile->seek(posErr);
QCOMPARE(m_stdoutFile->readAll(), QByteArray(""));
QCOMPARE(m_stderrFile->readAll(),
QByteArray("Error while reading the database: Wrong key or database file is corrupt. (HMAC mismatch)\n"));
QCOMPARE(m_stderrFile->readLine(),
QByteArray("Error while reading the database: Invalid credentials were provided, please try again.\n"));
QCOMPARE(m_stderrFile->readLine(),
QByteArray("If this reoccurs, then your database file may be corrupt. (HMAC mismatch)\n"));

// Should raise an error if yubikey slot is not a string
pos = m_stdoutFile->pos();
Expand Down

0 comments on commit 15a5a61

Please sign in to comment.