Skip to content

Commit

Permalink
Increase the buffer to 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Aug 16, 2024
1 parent 967290a commit 0a425f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ class VerifiableCredentialTest {
val vc = VerifiableCredential.create(ISSUER, CREDENTIAL_SUBJECT, VerifiableCredentialCreateOptions())

val now = Date()
val oneSecondAgo = Date(now.time - 1000)
val oneSecondAhead = Date(now.time + 1000)
val tenSecondsAgo = Date(now.time - 10000)
val tenSecondsAhead = Date(now.time + 10000)

assertTrue(vc.issuanceDate.after(oneSecondAgo) && vc.issuanceDate.before(oneSecondAhead))
assertTrue(vc.issuanceDate.after(tenSecondsAgo) && vc.issuanceDate.before(tenSecondsAhead))
}

@Test
Expand Down

0 comments on commit 0a425f3

Please sign in to comment.