feat: add a dump in there as well

This commit is contained in:
0x330a 2023-05-23 17:50:15 +10:00
parent 01fef6a0a4
commit 69a2169733
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C

View File

@ -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"))