1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-04-21 21:52:03 +02:00

tests: fix arguments for createNewAccount

Change-Id: Ied19a578f1dbe80d468fcf4c5220f2c340cadcab
This commit is contained in:
Kateryna Kostiuk 2025-03-11 10:41:22 -04:00
parent 0d1bdfdfdd
commit 5ee4990534

View file

@ -106,11 +106,15 @@ public Q_SLOTS:
// Create 2 Accounts // Create 2 Accounts
QSignalSpy accountAddedSpy(&lrcInstance_->accountModel(), &AccountModel::accountAdded); QSignalSpy accountAddedSpy(&lrcInstance_->accountModel(), &AccountModel::accountAdded);
aliceId = lrcInstance_->accountModel().createNewAccount(profile::Type::JAMI, "Alice"); MapStringString aliceDetails;
aliceDetails["alias"] = "Alice";
aliceId = lrcInstance_->accountModel().createNewAccount(profile::Type::JAMI, aliceDetails);
accountAddedSpy.wait(15000); accountAddedSpy.wait(15000);
QCOMPARE(accountAddedSpy.count(), 1); QCOMPARE(accountAddedSpy.count(), 1);
bobId = lrcInstance_->accountModel().createNewAccount(profile::Type::JAMI, "Bob"); MapStringString bobDetails;
bobDetails["alias"] = "Bob";
bobId = lrcInstance_->accountModel().createNewAccount(profile::Type::JAMI, bobDetails);
accountAddedSpy.wait(15000); accountAddedSpy.wait(15000);
QCOMPARE(accountAddedSpy.count(), 2); QCOMPARE(accountAddedSpy.count(), 2);