Skip to content

Commit 3df6e35

Browse files
committed
Checking refreshFrom in IdentityMapV3 tests, should be in the future, 1 day buffer to remove flakiness
1 parent cf6168e commit 3df6e35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/uid2/client/IdentityMapV3IntegrationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
66

77
import java.io.IOException;
8+
import java.time.Instant;
89
import java.util.Arrays;
910
import java.util.Collections;
1011
import java.util.HashMap;
@@ -193,6 +194,7 @@ void assertMapped(String dii) {
193194
IdentityMapV3Response.MappedIdentity mappedIdentity = identityMapResponse.getMappedIdentities().get(dii);
194195
assertNotNull(mappedIdentity);
195196
assertFalse(mappedIdentity.getCurrentUid().isEmpty());
197+
assertTrue(mappedIdentity.getRefreshFromSeconds() > Instant.now().minusSeconds(24 * 60 * 60).getEpochSecond());
196198

197199
IdentityMapV3Response.UnmappedIdentity unmappedIdentity = identityMapResponse.getUnmappedIdentities().get(dii);
198200
assertNull(unmappedIdentity);

0 commit comments

Comments
 (0)