Skip to content

Commit

Permalink
TS-38628 Fix null partition
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Dec 13, 2024
1 parent 12d4308 commit 2c58ab9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ object TestDescriptorUtils {
@JvmStatic
fun getAvailableTests(
rootTestDescriptor: TestDescriptor,
partition: String?
partition: String
): AvailableTests {
val availableTests = AvailableTests()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ abstract class ImpactedTestEngineTestBase {

@Test
fun testEngineExecution() {
whenever(impactedTestsProvider.getImpactedTestsFromTeamscale(any()))
.thenReturn(impactedTests)
whenever(impactedTestsProvider.partition)
.thenReturn("partition")

val testEngine = createInternalImpactedTestEngine(engines)

val engineDescriptor = testEngine
Expand All @@ -33,8 +38,6 @@ abstract class ImpactedTestEngineTestBase {
.thenReturn(executionListener)
whenever(executionRequest.rootTestDescriptor)
.thenReturn(engineDescriptor)
whenever(impactedTestsProvider.getImpactedTestsFromTeamscale(any()))
.thenReturn(impactedTests)

testEngine.execute(executionRequest)

Expand Down

0 comments on commit 2c58ab9

Please sign in to comment.