Skip to content

Commit

Permalink
test: fix flaky test case test_default_storage_class_syncup
Browse files Browse the repository at this point in the history
since storage_api.read_storage_class is flaky, it should be
wrapped in try-catch and for-loop

Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu committed Oct 23, 2023
1 parent 27de209 commit b21a0da
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion manager/integration/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4512,7 +4512,6 @@ def edit_configmap_allow_vol_exp(allow_exp):
print(e)
finally:
time.sleep(RETRY_INTERVAL)
longhorn_storage_class = storage_api.read_storage_class("longhorn")
assert longhorn_storage_class.allow_volume_expansion is allow_exp

def finalizer():
Expand Down

0 comments on commit b21a0da

Please sign in to comment.