From b21a0dac738798cdbf0125e5a5483c6cfb070ee3 Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Mon, 23 Oct 2023 11:47:06 +0800 Subject: [PATCH] test: fix flaky test case test_default_storage_class_syncup since storage_api.read_storage_class is flaky, it should be wrapped in try-catch and for-loop Signed-off-by: Yang Chiu --- manager/integration/tests/test_basic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/manager/integration/tests/test_basic.py b/manager/integration/tests/test_basic.py index de192f47e4..9e689bc3fb 100644 --- a/manager/integration/tests/test_basic.py +++ b/manager/integration/tests/test_basic.py @@ -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():