mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00:00
Fixes OTS test cases
This commit is contained in:
parent
328ed226c6
commit
0d92384d8c
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user