aboutsummaryrefslogtreecommitdiff
path: root/autotests/testkeyverification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/testkeyverification.cpp')
-rw-r--r--autotests/testkeyverification.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotests/testkeyverification.cpp b/autotests/testkeyverification.cpp
index 59a1c934..96aad6c7 100644
--- a/autotests/testkeyverification.cpp
+++ b/autotests/testkeyverification.cpp
@@ -17,7 +17,7 @@ private Q_SLOTS:
CREATE_CONNECTION(a, "alice1", "secret", "AliceDesktop")
CREATE_CONNECTION(b, "alice1", "secret", "AlicePhone")
- KeyVerificationSession *aSession = nullptr;
+ QPointer<KeyVerificationSession> aSession{};
connect(a.get(), &Connection::newKeyVerificationSession, this, [&](KeyVerificationSession* session) {
aSession = session;
QVERIFY(session->remoteDeviceId() == b->deviceId());
@@ -51,7 +51,7 @@ private Q_SLOTS:
});
b->syncLoop();
a->syncLoop();
- QSignalSpy spy(b.get(), &Connection::incomingKeyVerificationDone);
+ QSignalSpy spy(aSession, &KeyVerificationSession::finished);
spy.wait(10000);
}
};