Skip to content

Commit

Permalink
fix: workload launcher retry test (#14992)
Browse files Browse the repository at this point in the history
  • Loading branch information
clnoll committed Jan 13, 2025
1 parent a0c7ca1 commit 350af62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class KubePodLauncherTest {
every { pods.inNamespace(any()) } returns namespaceable
every { namespaceable.withLabels(any()) } returns labels
every { labels.waitUntilCondition(any(), any(), any()) } throws
KubernetesClientTimeoutException(hasMetadata, 2L, TimeUnit.SECONDS)
RuntimeException()
every { kubernetesClient.pods() } returns pods

val kubePodLauncher =
Expand All @@ -316,7 +316,7 @@ class KubePodLauncherTest {
null,
)

assertThrows<KubernetesClientException> {
assertThrows<RuntimeException> {
kubePodLauncher.waitForPodReadyOrTerminal(mapOf("label" to "value"), Duration.ofSeconds(30))
}
assertEquals(0, counter.get())
Expand Down

0 comments on commit 350af62

Please sign in to comment.