mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
feat: add a dump in there as well
This commit is contained in:
parent
01fef6a0a4
commit
69a2169733
@ -48,7 +48,7 @@ class InstrumentedTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
private fun testDirtyEmptyString() {
|
fun testDirtyEmptyString() {
|
||||||
val contacts = Contacts.newInstance(keyPair.secretKey)
|
val contacts = Contacts.newInstance(keyPair.secretKey)
|
||||||
val definitelyRealId = "050000000000000000000000000000000000000000000000000000000000000000"
|
val definitelyRealId = "050000000000000000000000000000000000000000000000000000000000000000"
|
||||||
val contact = contacts.getOrConstruct(definitelyRealId)
|
val contact = contacts.getOrConstruct(definitelyRealId)
|
||||||
@ -57,6 +57,7 @@ class InstrumentedTests {
|
|||||||
contacts.set(contact.copy(name = "test"))
|
contacts.set(contact.copy(name = "test"))
|
||||||
assertTrue(contacts.dirty())
|
assertTrue(contacts.dirty())
|
||||||
val push = contacts.push()
|
val push = contacts.push()
|
||||||
|
contacts.dump()
|
||||||
contacts.confirmPushed(push.seqNo, "abc123")
|
contacts.confirmPushed(push.seqNo, "abc123")
|
||||||
contacts.set(contact.copy(name = "test2"))
|
contacts.set(contact.copy(name = "test2"))
|
||||||
contacts.set(contact.copy(name = "test"))
|
contacts.set(contact.copy(name = "test"))
|
||||||
|
Loading…
Reference in New Issue
Block a user