Skip to content

Commit

Permalink
test: fix longhorn.ApiError not found status code 404
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <yang.chiu@suse.com>
  • Loading branch information
yangchiu authored and khushboo-rancher committed May 8, 2024
1 parent 2e0b8c1 commit 5e7208a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/integration/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5e7208a

Please sign in to comment.