mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 08:38:03 +01:00
Revert "Replace zkgroup with libsignal-client"
This reverts commit 73ea6e4251.
This commit is contained in:
committed by
Jon Chambers
parent
c1d6c04ab2
commit
ab9e6ac48a
@@ -56,7 +56,7 @@ class IssuedReceiptsManagerTest {
|
||||
@Test
|
||||
void testRecordIssuance() {
|
||||
Instant now = Instant.ofEpochSecond(NOW_EPOCH_SECONDS);
|
||||
byte[] request1 = new byte[20];
|
||||
byte[] request1 = new byte[ReceiptCredentialRequest.SIZE];
|
||||
SECURE_RANDOM.nextBytes(request1);
|
||||
when(receiptCredentialRequest.serialize()).thenReturn(request1);
|
||||
CompletableFuture<Void> future = issuedReceiptsManager.recordIssuance("item-1", receiptCredentialRequest, now);
|
||||
@@ -67,7 +67,7 @@ class IssuedReceiptsManagerTest {
|
||||
assertThat(future).succeedsWithin(Duration.ofSeconds(3));
|
||||
|
||||
// same item with new request should fail
|
||||
byte[] request2 = new byte[20];
|
||||
byte[] request2 = new byte[ReceiptCredentialRequest.SIZE];
|
||||
SECURE_RANDOM.nextBytes(request2);
|
||||
when(receiptCredentialRequest.serialize()).thenReturn(request2);
|
||||
future = issuedReceiptsManager.recordIssuance("item-1", receiptCredentialRequest, now);
|
||||
|
||||
@@ -120,7 +120,7 @@ class DonationControllerTest {
|
||||
receiptSerialBytes = new byte[ReceiptSerial.SIZE];
|
||||
SECURE_RANDOM.nextBytes(receiptSerialBytes);
|
||||
receiptSerial = new ReceiptSerial(receiptSerialBytes);
|
||||
presentation = new byte[25];
|
||||
presentation = new byte[ReceiptCredentialPresentation.SIZE];
|
||||
SECURE_RANDOM.nextBytes(presentation);
|
||||
receiptCredentialPresentationFactory = mock(DonationController.ReceiptCredentialPresentationFactory.class);
|
||||
receiptCredentialPresentation = mock(ReceiptCredentialPresentation.class);
|
||||
|
||||
Reference in New Issue
Block a user