mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix the task ordering bug.
This commit is contained in:
parent
699d9e99e7
commit
e99c277700
2 changed files with 20 additions and 0 deletions
|
@ -101,4 +101,14 @@ class BuildOrderTest @Inject constructor(val taskManager: TaskManager) {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun shouldBuildInRightOrder3() {
|
||||
val p1 = project { name = "p1" }
|
||||
val expectedTasks = listOf("p1:run", "p1:exec")
|
||||
with(taskManager) {
|
||||
with(calculateDependentTaskNames(listOf("run", "exec"), listOf(p1))) {
|
||||
assertThat(this.map { it.id }).isEqualTo(expectedTasks)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue