File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/test/java/com/uid2/client Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 55import org .junit .jupiter .api .condition .EnabledIfEnvironmentVariable ;
66
77import java .io .IOException ;
8+ import java .time .Instant ;
89import java .util .Arrays ;
910import java .util .Collections ;
1011import 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 );
You can’t perform that action at this time.
0 commit comments