Skip to content

Commit

Permalink
fix: Run test methods in InProcessLifeOfAReportIntegrationTest (#2005)
Browse files Browse the repository at this point in the history
Closes #2004

---------

Co-authored-by: Tristan Vuong <[email protected]>
  • Loading branch information
SanjayVas and tristanvuong2021 authored Jan 24, 2025
1 parent 78997f8 commit 162f9ad
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package org.wfanet.measurement.integration.common
import com.google.protobuf.ByteString
import com.google.protobuf.TypeRegistry
import java.security.cert.X509Certificate
import java.util.concurrent.TimeUnit
import kotlinx.coroutines.runBlocking
import org.junit.rules.TestRule
import org.junit.runner.Description
Expand Down Expand Up @@ -153,6 +154,8 @@ class InProcessCmmsComponents(
}
private val publicAccountsClient by lazy {
AccountsGrpcKt.AccountsCoroutineStub(kingdom.publicApiChannel)
// Fail faster.
.withDeadlineAfter(5L, TimeUnit.SECONDS)
}
private val publicApiKeysClient by lazy {
ApiKeysGrpcKt.ApiKeysCoroutineStub(kingdom.publicApiChannel)
Expand Down Expand Up @@ -308,6 +311,12 @@ class InProcessCmmsComponents(
populationRequisitionFulfiller.stop()
}

fun stopDaemons() {
stopEdpSimulators()
stopDuchyDaemons()
stopPopulationRequisitionFulfillerDaemon()
}

override fun apply(statement: Statement, description: Description): Statement {
return ruleChain.apply(statement, description)
}
Expand Down
Loading

0 comments on commit 162f9ad

Please sign in to comment.