diff options
author | Jonathan White <support@dmapps.us> | 2019-04-05 15:31:37 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-04-08 02:12:45 +0300 |
commit | 0201fcd400cbc89f1231ea685d10a0d847221969 (patch) | |
tree | 13628fd9eff051036efe07139ce004408c0c3b2f /tests/TestCli.cpp | |
parent | 791b796c234176646f43ce61da98fb1ec92e54f0 (diff) |
Improved error messages when opening database
* Reduced wording and confusion
* Streamlined delivery format
* Fix #813
Diffstat (limited to 'tests/TestCli.cpp')
-rw-r--r-- | tests/TestCli.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp index 3ba40b904..9574f6d32 100644 --- a/tests/TestCli.cpp +++ b/tests/TestCli.cpp @@ -702,8 +702,7 @@ void TestCli::testKeyFileOption() 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")); + QVERIFY(m_stderrFile->readAll().contains("Invalid credentials were provided")); // Should raise an error if key file path is invalid. pos = m_stdoutFile->pos(); @@ -736,8 +735,7 @@ void TestCli::testNoPasswordOption() 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")); + QVERIFY(m_stderrFile->readAll().contains("Invalid credentials were provided")); } void TestCli::testList() |