From 8eadc5aee9168e6cdcb0df030e810edff4e807b0 Mon Sep 17 00:00:00 2001 From: David Byron Date: Sat, 28 Oct 2023 08:48:07 -0700 Subject: [PATCH] fix(qos/test): fix syntax in DefaultExecutionPromoterTest so tests actually run --- .../orca/qos/DefaultExecutionPromoterTest.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/orca-qos/src/test/kotlin/com/netflix/spinnaker/orca/qos/DefaultExecutionPromoterTest.kt b/orca-qos/src/test/kotlin/com/netflix/spinnaker/orca/qos/DefaultExecutionPromoterTest.kt index 076aec8f1d..74fbd6b291 100644 --- a/orca-qos/src/test/kotlin/com/netflix/spinnaker/orca/qos/DefaultExecutionPromoterTest.kt +++ b/orca-qos/src/test/kotlin/com/netflix/spinnaker/orca/qos/DefaultExecutionPromoterTest.kt @@ -73,19 +73,19 @@ class DefaultExecutionPromoterTest : SubjectSpek({ 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) } } }