Fixes OTS test cases

This commit is contained in:
Vitor Pamplona 2024-02-27 19:16:06 -05:00
parent 328ed226c6
commit 0d92384d8c

View File

@ -77,7 +77,9 @@ class OkHttpOtsTest {
val countDownLatch = CountDownLatch(1) val countDownLatch = CountDownLatch(1)
OtsEvent.create(otsEvent2Digest, signer) { val otsFile = OtsEvent.stamp(otsEvent2Digest)
OtsEvent.create(otsEvent2Digest, otsFile, signer) {
ots = it ots = it
countDownLatch.countDown() countDownLatch.countDown()
} }
@ -87,7 +89,7 @@ class OkHttpOtsTest {
println(ots!!.toJson()) println(ots!!.toJson())
println(ots!!.info()) println(ots!!.info())
// Should not be valid // Should not be valid because we need to wait for confirmations
assertEquals(null, ots!!.verify()) assertEquals(null, ots!!.verify())
} }
} }