Skip to content

Commit

Permalink
trying
Browse files Browse the repository at this point in the history
Signed-off-by: akostiucenko <[email protected]>
  • Loading branch information
arndey committed Jul 26, 2023
1 parent e68341e commit 1467310
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ import jp.co.soramitsu.iroha2.testengine.WithIroha
import jp.co.soramitsu.iroha2.testengine.XOR_DEFINITION_ID
import jp.co.soramitsu.iroha2.testengine.XorAndValAssets
import jp.co.soramitsu.iroha2.transaction.QueryFilters
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.time.withTimeout
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.testcontainers.shaded.org.apache.commons.lang3.RandomStringUtils
import java.time.Instant
import java.util.concurrent.Executors
import kotlin.coroutines.CoroutineContext
import kotlin.test.assertContains
import kotlin.test.assertContentEquals
import kotlin.test.assertEquals
Expand All @@ -63,7 +68,11 @@ import kotlin.test.assertTrue
@Owner("akostyuchenko")
@Sdk("Java/Kotlin")
@Permission("no_permission_required")
class QueriesTest : IrohaTest<Iroha2Client>() {
class QueriesTest : IrohaTest<Iroha2Client>(), CoroutineScope {

override val coroutineContext: CoroutineContext = Executors
.newFixedThreadPool(Runtime.getRuntime().availableProcessors())
.asCoroutineDispatcher() + SupervisorJob()

@Test
@WithIroha([NewAccountWithMetadata::class])
Expand Down

0 comments on commit 1467310

Please sign in to comment.