Skip to content

Commit

Permalink
#157 Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Jun 17, 2024
1 parent 22fe90e commit 0bca56e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SpringAdamSource(
@Qualifier(MainR2dbcConfig.BeanName.TX_ENV)
txEnv: TxEnv,
) {
private val source = AdamSource(
val source = AdamSource(
users = users,
tokens = tokens,
config = config,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AdamTest(
coroutineScope {
repeat(4) {
launch {
val adam = adam.adam()
val adam = adam.source.adam()
if (adam.token != null) {
tokenIssuedCount.addAndGet(1)
}
Expand All @@ -28,6 +28,6 @@ class AdamTest(
}

// As Adam was already created at startup
tokenIssuedCount shouldBe 0
tokenIssuedCount.get() shouldBe 0
}
}

0 comments on commit 0bca56e

Please sign in to comment.