mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:46:53 +00:00
Use getAccountIdentifier in device transfer context
This commit is contained in:
1 parent
d69a5f1f33
commit
b63f176ad7
2 files changed
+7
-7
No files matched your search
+4
-4
@@ -97,7 +97,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
|
||||
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(registrationId);
|
||||
|
||||
final Account account = mock(Account.class);
|
||||
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
|
||||
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
|
||||
|
||||
final CompletableFuture<Optional<TransferArchiveResult>> displacedFuture =
|
||||
accountsManager.waitForTransferArchive(account, device, Duration.ofSeconds(5));
|
||||
@@ -126,7 +126,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
|
||||
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(registrationId);
|
||||
|
||||
final Account account = mock(Account.class);
|
||||
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
|
||||
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
|
||||
|
||||
accountsManager.recordTransferArchiveUpload(account, deviceId, registrationId, transferArchive).join();
|
||||
|
||||
@@ -148,7 +148,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
|
||||
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(registrationId);
|
||||
|
||||
final Account account = mock(Account.class);
|
||||
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
|
||||
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
|
||||
|
||||
accountsManager.recordTransferArchiveUpload(account, deviceId,
|
||||
registrationId, transferArchiveError).join();
|
||||
@@ -165,7 +165,7 @@ public class AccountsManagerDeviceTransferIntegrationTest {
|
||||
when(device.getRegistrationId(IdentityType.ACI)).thenReturn(123);
|
||||
|
||||
final Account account = mock(Account.class);
|
||||
when(account.getIdentifier(IdentityType.ACI)).thenReturn(accountIdentifier);
|
||||
when(account.getAccountIdentifier()).thenReturn(accountIdentifier);
|
||||
|
||||
assertEquals(Optional.empty(),
|
||||
accountsManager.waitForTransferArchive(account, device, Duration.ofMillis(1)).join());
|
||||
|
||||
Reference in new issue
Block a user