Skip to content

Commit 479b27c

Browse files
Fix benchmark tests.
1 parent a66857a commit 479b27c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/src/benchmark/java/org/signal/benchmark/DummyAccountManagerFactory.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class DummyAccountManagerFactory : AccountManagerFactory() {
2323
deviceId,
2424
password,
2525
BuildConfig.SIGNAL_AGENT,
26-
RemoteConfig.okHttpAutomaticRetry(),
27-
RemoteConfig.groupLimits().hardLimit
26+
RemoteConfig.okHttpAutomaticRetry,
27+
RemoteConfig.groupLimits.hardLimit
2828
)
2929
}
3030

app/src/benchmark/java/org/signal/benchmark/setup/TestMessages.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ object TestMessages {
161161
false,
162162
Optional.empty(),
163163
Optional.empty(),
164-
System.currentTimeMillis()
164+
System.currentTimeMillis(),
165+
null
165166
)
166167
}
167168

@@ -184,7 +185,8 @@ object TestMessages {
184185
false,
185186
Optional.empty(),
186187
Optional.empty(),
187-
System.currentTimeMillis()
188+
System.currentTimeMillis(),
189+
null
188190
)
189191
}
190192

app/src/benchmark/java/org/signal/benchmark/setup/TestUsers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ object TestUsers {
100100
val recipientId = RecipientId.from(SignalServiceAddress(aci, "+15555551%03d".format(i)))
101101
SignalDatabase.recipients.setProfileName(recipientId, ProfileName.fromParts("Buddy", "#$i"))
102102
SignalDatabase.recipients.setProfileKeyIfAbsent(recipientId, ProfileKeyUtil.createNew())
103-
SignalDatabase.recipients.setCapabilities(recipientId, SignalServiceProfile.Capabilities(true, true))
103+
SignalDatabase.recipients.setCapabilities(recipientId, SignalServiceProfile.Capabilities(true, true, true))
104104
SignalDatabase.recipients.setProfileSharing(recipientId, true)
105105
SignalDatabase.recipients.markRegistered(recipientId, aci)
106106
val otherIdentity = IdentityKeyUtil.generateIdentityKeyPair()

0 commit comments

Comments
 (0)