Skip to content

Commit

Permalink
fix: e2e readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Feb 17, 2021
1 parent d8eb90c commit ef64ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void waitTest() {
await().atMost(120, TimeUnit.SECONDS).until(deploymentReady);
Deployment deploymentOne = client.apps().deployments()
.inNamespace(session.getNamespace()).withName("deployment-wait").get();
assertTrue(Readiness.isDeploymentReady(deploymentOne));
assertTrue(Readiness.getInstance().isDeploymentReady(deploymentOne));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void evict() throws InterruptedException {
// cant evict because only one left
assertFalse(client.pods().inNamespace(session.getNamespace()).withName(pod1.getMetadata().getName()).evict());
// ensure it really is still up
assertTrue(Readiness.isReady(client.pods().inNamespace(session.getNamespace()).withName(pod1.getMetadata().getName()).fromServer().get()));
assertTrue(Readiness.getInstance().isReady(client.pods().inNamespace(session.getNamespace()).withName(pod1.getMetadata().getName()).fromServer().get()));

// create another pod to satisfy PDB
client.pods().inNamespace(session.getNamespace()).createOrReplace(pod3);
Expand Down

0 comments on commit ef64ef2

Please sign in to comment.