Keep GUI history and media regression tests in device mode
This commit is contained in:
1 parent
d840688e96
commit
4dc5e1b11c
3 files changed
+6
-5
No files matched your search
@@ -140,7 +140,7 @@ private slots:
|
||||
QCOMPARE(sc_generate_keypair(&peer), SC_OK); QCOMPARE(sc_derive_ed25519_pubkey(peer.private_key, ed), SC_OK);
|
||||
const quint64 peerId = sc_derive_node_id_from_pubkey(peer.public_key);
|
||||
const auto startPeer = [peer, ed, peerId](UTUN_INSTANCE* inst) {
|
||||
return dm_start(inst, peerId, peer.public_key, ed, "Alice", nullptr);
|
||||
return dm_start(inst, peerId, peer.public_key, ed, "Alice", nullptr, DM_MODE_DEVICE, nullptr);
|
||||
};
|
||||
QCOMPARE(inCore(startPeer), 0);
|
||||
QTRY_COMPARE_WITH_TIMEOUT(db.getDmConversations().size(), 1, 3000);
|
||||
@@ -214,7 +214,7 @@ private slots:
|
||||
QCOMPARE(sc_generate_keypair(&other), SC_OK); QCOMPARE(sc_derive_ed25519_pubkey(other.private_key, otherEd), SC_OK);
|
||||
const quint64 otherId = sc_derive_node_id_from_pubkey(other.public_key);
|
||||
QCOMPARE(inCore([other, otherEd, otherId](UTUN_INSTANCE* inst) {
|
||||
return dm_start(inst, otherId, other.public_key, otherEd, "Bob", nullptr);
|
||||
return dm_start(inst, otherId, other.public_key, otherEd, "Bob", nullptr, DM_MODE_DEVICE, nullptr);
|
||||
}), 0);
|
||||
QTRY_COMPARE_WITH_TIMEOUT(db.getDmConversations().size(), 2, 3000);
|
||||
QCoreApplication::processEvents(); channels->selectChannel("dm:" + conv);
|
||||
|
||||
Reference in new issue
Block a user