Skip to content

Commit

Permalink
Tests, QContactManager: cleanup self constituent at end of test
Browse files Browse the repository at this point in the history
This contact is not normally returned by the QContactManager::contacts()
method, so it's not being delated by our newly added cleanup() method.
  • Loading branch information
mardy committed Jun 14, 2019
1 parent e41cf81 commit 831f1da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/auto/qcontactmanager/tst_qcontactmanager.cpp
Expand Up @@ -4692,6 +4692,9 @@ void tst_QContactManager::constituentOfSelf()
// Verify that the new contact was not aggregated into the self contact
newContact = m->contact(retrievalId(newContact));
QVERIFY(!relatedContactIds(newContact.relatedContacts()).contains(m->selfContactId()));

// Cleanup
QVERIFY(m->removeContact(constituent.id()));
}

void tst_QContactManager::searchSensitivity()
Expand Down

0 comments on commit 831f1da

Please sign in to comment.