mirror of
https://github.com/corda/corda.git
synced 2025-06-18 07:08:15 +00:00
BFT tests: no need to stop threads explicitly
This commit is contained in:
@ -34,7 +34,7 @@ class DistributedImmutableBFTMapTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `stores entries correctly and detects conflicts`() {
|
fun `stores entries correctly and detects conflicts`() {
|
||||||
val threads = (0..3).map { i ->
|
(0..3).forEach { i ->
|
||||||
thread { BFTSmartServer<String, String>(i, database, "bft_notary_committed_states_$i") }.apply { Thread.sleep(500) }
|
thread { BFTSmartServer<String, String>(i, database, "bft_notary_committed_states_$i") }.apply { Thread.sleep(500) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,7 +64,5 @@ class DistributedImmutableBFTMapTests {
|
|||||||
// Null response encodes 'not found'.
|
// Null response encodes 'not found'.
|
||||||
val r = client.get("x")
|
val r = client.get("x")
|
||||||
assertEquals(null, r)
|
assertEquals(null, r)
|
||||||
|
|
||||||
threads.forEach { t -> t.stop() }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user