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)