Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Sep 1, 2024
1 parent ffe43b5 commit 051f143
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions autotests/testgroupsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ void TestGroupSession::groupSessionPicklingValid()
QVERIFY(QByteArray::fromBase64(ogsId).size() > 0);
QCOMPARE(0, ogs.sessionMessageIndex());

auto&& ogsPickled = ogs.pickle(PicklingKey::mock());
auto picklingKey = PicklingKey::generate();
auto&& ogsPickled = ogs.pickle(picklingKey);
auto ogs2 = QOlmOutboundGroupSession::unpickle(std::move(ogsPickled),
PicklingKey::mock())
.value();
picklingKey).value();
QCOMPARE(ogsId, ogs2.sessionId());

auto igs = QOlmInboundGroupSession::create(ogs.sessionKey());
Expand All @@ -30,9 +30,9 @@ void TestGroupSession::groupSessionPicklingValid()
//// no messages have been sent yet
QCOMPARE(0, igs->firstKnownIndex());

auto igsPickled = igs->pickle(PicklingKey::mock());
auto igsPickled = igs->pickle(picklingKey);
igs = QOlmInboundGroupSession::unpickle(std::move(igsPickled),
PicklingKey::mock()).value();
picklingKey).value();
QVERIFY(igs.has_value());
QCOMPARE(igsId, igs->sessionId());
}
Expand Down

0 comments on commit 051f143

Please sign in to comment.