chore: optimize the error msg

This commit is contained in:
zhifei92 2024-08-26 19:33:54 +08:00
parent fc7dadf370
commit 7015f753e2

View File

@ -129,8 +129,7 @@ while true; do sleep 1; done
ginkgo.By(fmt.Sprintf("Container '%s': should be possible to delete", testContainer.Name))
gomega.Expect(terminateContainer.Delete(ctx)).To(gomega.Succeed())
errMsg := fmt.Sprintf("container '%s': should have been terminated by now.", testContainer.Name)
gomega.Eventually(ctx, terminateContainer.Present, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.BeFalseBecause(errMsg))
gomega.Eventually(ctx, terminateContainer.Present, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.BeFalseBecause("container '%s': should have been terminated by now.", testContainer.Name))
}
})
})