Fix benchmark tests.

This commit is contained in:
Nicholas Tinsley 2024-06-26 13:06:42 -04:00
parent a66857a7cc
commit 479b27ce94
3 changed files with 7 additions and 5 deletions

View file

@ -23,8 +23,8 @@ class DummyAccountManagerFactory : AccountManagerFactory() {
deviceId,
password,
BuildConfig.SIGNAL_AGENT,
RemoteConfig.okHttpAutomaticRetry(),
RemoteConfig.groupLimits().hardLimit
RemoteConfig.okHttpAutomaticRetry,
RemoteConfig.groupLimits.hardLimit
)
}

View file

@ -161,7 +161,8 @@ object TestMessages {
false,
Optional.empty(),
Optional.empty(),
System.currentTimeMillis()
System.currentTimeMillis(),
null
)
}
@ -184,7 +185,8 @@ object TestMessages {
false,
Optional.empty(),
Optional.empty(),
System.currentTimeMillis()
System.currentTimeMillis(),
null
)
}

View file

@ -100,7 +100,7 @@ object TestUsers {
val recipientId = RecipientId.from(SignalServiceAddress(aci, "+15555551%03d".format(i)))
SignalDatabase.recipients.setProfileName(recipientId, ProfileName.fromParts("Buddy", "#$i"))
SignalDatabase.recipients.setProfileKeyIfAbsent(recipientId, ProfileKeyUtil.createNew())
SignalDatabase.recipients.setCapabilities(recipientId, SignalServiceProfile.Capabilities(true, true))
SignalDatabase.recipients.setCapabilities(recipientId, SignalServiceProfile.Capabilities(true, true, true))
SignalDatabase.recipients.setProfileSharing(recipientId, true)
SignalDatabase.recipients.markRegistered(recipientId, aci)
val otherIdentity = IdentityKeyUtil.generateIdentityKeyPair()