mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-11-30 01:06:50 +00:00
Don't set phone number identity keys in tests unless a phone number is also present
This commit is contained in:
1 parent
262f7de742
commit
20dc6390b9
1 file changed
+1
-1
+1
-1
@@ -180,13 +180,13 @@ public class AccountsTestHelper {
|
||||
|
||||
if (number != null) {
|
||||
account.setNumber(number, UUID.randomUUID());
|
||||
account.setPhoneNumberIdentityKey(new IdentityKey(pniIdentityKeyPair.getPublicKey()));
|
||||
}
|
||||
|
||||
account.setUnrestrictedUnidentifiedAccess(unrestrictedUnidentifiedAccess);
|
||||
account.setDiscoverableByPhoneNumber(discoverableByPhoneNumber);
|
||||
account.setBadges(Clock.systemUTC(), new ArrayList<>(badges));
|
||||
account.setIdentityKey(new IdentityKey(aciIdentityKeyPair.getPublicKey()));
|
||||
account.setPhoneNumberIdentityKey(new IdentityKey(pniIdentityKeyPair.getPublicKey()));
|
||||
|
||||
assert !devices.isEmpty();
|
||||
|
||||
|
||||
Reference in new issue
Block a user