Skip to content

Commit

Permalink
Use AccountPtr in testpushnotifications
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 20, 2024
1 parent e4efc6b commit 26dbe9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/testpushnotifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ private slots:

QCOMPARE(connectionLostSpy.count(), 1);

auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::Account *>();
QCOMPARE(accountSent, account.data());
const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::AccountPtr>();
QCOMPARE(accountSent.data(), account.data());
}

void testAccount_web_socket_authenticationFailed_emitNotificationsDisabled()
Expand All @@ -272,8 +272,8 @@ private slots:

// Now the pushNotificationsDisabled Signal should be emitted
QCOMPARE(pushNotificationsDisabledSpy.count(), 1);
auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::Account *>();
QCOMPARE(accountSent, account.data());
const auto accountSent = pushNotificationsDisabledSpy.at(0).at(0).value<OCC::AccountPtr>();
QCOMPARE(accountSent.data(), account.data());
}

void testPingTimeout_pingTimedOut_reconnect()
Expand Down

0 comments on commit 26dbe9b

Please sign in to comment.