File tree Expand file tree Collapse file tree
java-sdk/sdk/src/test/kotlin/org/apache/airflow/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ private class FakeTransport(
4646 val stored : TaskStateStoreResult ? = null ,
4747) : org.apache.airflow.sdk.execution.Client {
4848 val calls = mutableListOf<StateStoreCall >()
49- val skipped = mutableListOf<String >()
5049
5150 override fun getConnection (id : String ): ConnectionResult = connection
5251
@@ -106,9 +105,7 @@ private class FakeTransport(
106105 calls.add(StateStoreCall (" clear" , tiId))
107106 }
108107
109- override fun skipDownstreamTasks (taskIds : List <String >) {
110- skipped + = taskIds
111- }
108+ override fun skipDownstreamTasks (taskIds : List <String >) = Unit
112109}
113110
114111class ClientTest {
Original file line number Diff line number Diff line change @@ -27,16 +27,12 @@ import org.junit.jupiter.api.Assertions.assertTrue
2727import org.junit.jupiter.api.DisplayName
2828import org.junit.jupiter.api.Test
2929
30- /* * A condition the tests register; what it decides is driven from the runtime tests . */
30+ /* * A condition the tests register; it always holds . */
3131class HasRows : ConditionTask {
3232 override fun decide (
3333 context : Context ,
3434 client : Client ,
35- ): Boolean = decision
36-
37- companion object {
38- var decision: Boolean = true
39- }
35+ ): Boolean = true
4036}
4137
4238internal class ConditionTest {
You can’t perform that action at this time.
0 commit comments