From b835cbc6eb17fe7d279c1963c520130dda8d519a Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Tue, 5 Mar 2019 11:43:01 -0500 Subject: Undeploy k8s artifacts on timeout Issue-ID: DCAEGEN2-987 Change-Id: I35a2dcdb7b7f1b7280dba6593a9ee2b8921b6df9 Signed-off-by: Jack Lucas --- k8s/tests/test_tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'k8s/tests') diff --git a/k8s/tests/test_tasks.py b/k8s/tests/test_tasks.py index 69e866d..948489a 100644 --- a/k8s/tests/test_tasks.py +++ b/k8s/tests/test_tasks.py @@ -208,8 +208,7 @@ def test_verify_container(monkeypatch, mockconfig): monkeypatch.setattr(k8sclient, "is_available", fake_is_available_never_good) - with pytest.raises(DockerPluginDeploymentError): - tasks._verify_k8s_deployment("some-name", 2) + assert not tasks._verify_k8s_deployment("some-name", 2) def test_update_delivery_url(monkeypatch, mockconfig): -- cgit 1.2.3-korg