From 5e7208aa662e07363a3de5a20f05ac2c1172033c Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Tue, 7 May 2024 13:49:51 +0800 Subject: [PATCH] test: fix longhorn.ApiError not found status code 404 Signed-off-by: Yang Chiu --- manager/integration/tests/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/integration/tests/common.py b/manager/integration/tests/common.py index 44ed980ecc..f44423a3d6 100644 --- a/manager/integration/tests/common.py +++ b/manager/integration/tests/common.py @@ -747,8 +747,8 @@ def delete_and_wait_longhorn(client, name): assert ex.status == 404 except longhorn.ApiError as err: # for deleting a non-existing volume, - # the status_code is 500 Server Error. - assert err.error.code == 500 + # the status_code is 404. + assert err.error.code == 404 wait_for_volume_delete(client, name)