Add ttl for braintree writes to onetime donation table

This commit is contained in:
Katherine
2023-12-15 13:37:35 -05:00
committed by GitHub
parent 372e3f83d2
commit a37acd1f42
5 changed files with 15 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ package org.whispersystems.textsecuregcm.storage;
import static org.assertj.core.api.Assertions.assertThat;
import java.time.Duration;
import java.time.Instant;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -21,6 +22,7 @@ public class OnetimeDonationsManagerTest {
void beforeEach() {
oneTimeDonationsManager = new OneTimeDonationsManager(
DynamoDbExtensionSchema.Tables.ONETIME_DONATIONS.tableName(),
Duration.ofDays(90),
DYNAMO_DB_EXTENSION.getDynamoDbAsyncClient());
}