Qt: Fix debug output in t-ownertrust

* lang/qt/tests/t-ownertrust.cpp (testChangeOwnerTrust): Remove
general debug of trust level. Add debug output for error.
This commit is contained in:
Andre Heinecke 2016-06-01 10:01:43 +02:00
parent c88c9ef384
commit 9d6f85bd25

View File

@ -58,12 +58,14 @@ private Q_SLOTS:
Q_ASSERT (!result.error());
Q_ASSERT (keys.size() == 1);
Key key = keys.front();
qDebug() << "Trust is: " << key.ownerTrust();
Q_ASSERT (key.ownerTrust() == Key::Unknown);
ChangeOwnerTrustJob *job2 = openpgp()->changeOwnerTrustJob();
connect(job2, &ChangeOwnerTrustJob::result, this, [this](Error e)
{
if (e) {
qDebug() << "Error in result: " << e.asString();
}
Q_ASSERT(!e);
Q_EMIT asyncDone();
});