mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 12:44:38 +00:00
Remove maximum denial tracking.
This commit is contained in:
@@ -245,26 +245,6 @@ class PendingParticipantCollectionTest {
|
||||
assertEquals(expected, actual.first())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Given a participant is denied twice, when I withRecipients, then I expect the state to be DENIED`() {
|
||||
val recipients = createRecipients(1)
|
||||
val expected = PendingParticipantCollection.Entry(
|
||||
recipient = recipients[0],
|
||||
state = PendingParticipantCollection.State.DENIED,
|
||||
stateChangeAt = 2.milliseconds,
|
||||
denialCount = 2
|
||||
)
|
||||
|
||||
val actual = testSubject
|
||||
.withRecipients(recipients)
|
||||
.withDenial(recipients[0])
|
||||
.withDenial(recipients[0])
|
||||
.withRecipients(recipients)
|
||||
.getAllPendingParticipants(0.milliseconds)
|
||||
|
||||
assertEquals(expected, actual.first())
|
||||
}
|
||||
|
||||
private fun createRecipients(count: Int): List<Recipient> {
|
||||
return (1..count).map { RecipientDatabaseTestUtils.createRecipient() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user