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:
parent
0d1bdfdfdd
commit
5ee4990534
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue