Skip to content

Commit

Permalink
fix(qos/test): fix syntax in DefaultExecutionPromoterTest
Browse files Browse the repository at this point in the history
so tests actually run
  • Loading branch information
dbyron-sf committed Oct 28, 2023
1 parent b1071bd commit 72925a1
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ class DefaultExecutionPromoterTest : SubjectSpek<DefaultExecutionPromoter>({

on("promote schedule") {
subject.tick()
}

it("promotes all policy-selected candidate executions via status update") {
assertThat(execution1.status).isEqualTo(NOT_STARTED)
assertThat(execution2.status).isEqualTo(NOT_STARTED)
verify(executionRepository).updateStatus(execution1)
verify(executionRepository).updateStatus(execution2)
}
it("promotes all policy-selected candidate executions via status update") {
assertThat(execution1.status).isEqualTo(NOT_STARTED)
assertThat(execution2.status).isEqualTo(NOT_STARTED)
verify(executionRepository).updateStatus(execution1)
verify(executionRepository).updateStatus(execution2)
}

it("starts the executions immediately") {
verify(executionLauncher).start(execution1)
verify(executionLauncher).start(execution2)
verifyNoMoreInteractions(executionLauncher)
}
it("starts the executions immediately") {
verify(executionLauncher).start(execution1)
verify(executionLauncher).start(execution2)
verifyNoMoreInteractions(executionLauncher)
}
}
}
Expand Down

0 comments on commit 72925a1

Please sign in to comment.