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:
parent
c88c9ef384
commit
9d6f85bd25
@ -58,12 +58,14 @@ private Q_SLOTS:
|
|||||||
Q_ASSERT (!result.error());
|
Q_ASSERT (!result.error());
|
||||||
Q_ASSERT (keys.size() == 1);
|
Q_ASSERT (keys.size() == 1);
|
||||||
Key key = keys.front();
|
Key key = keys.front();
|
||||||
qDebug() << "Trust is: " << key.ownerTrust();
|
|
||||||
Q_ASSERT (key.ownerTrust() == Key::Unknown);
|
Q_ASSERT (key.ownerTrust() == Key::Unknown);
|
||||||
|
|
||||||
ChangeOwnerTrustJob *job2 = openpgp()->changeOwnerTrustJob();
|
ChangeOwnerTrustJob *job2 = openpgp()->changeOwnerTrustJob();
|
||||||
connect(job2, &ChangeOwnerTrustJob::result, this, [this](Error e)
|
connect(job2, &ChangeOwnerTrustJob::result, this, [this](Error e)
|
||||||
{
|
{
|
||||||
|
if (e) {
|
||||||
|
qDebug() << "Error in result: " << e.asString();
|
||||||
|
}
|
||||||
Q_ASSERT(!e);
|
Q_ASSERT(!e);
|
||||||
Q_EMIT asyncDone();
|
Q_EMIT asyncDone();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user