From 549b9f35ec843bbac6a5d7320d12983d0d8b88a0 Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Mon, 14 Oct 2024 16:54:02 +0800 Subject: [PATCH] fix(robot): fix flaky test case Disrupt Data Plane Traffic For Less Than Long Engine Replica Timeout Signed-off-by: Yang Chiu --- e2e/tests/regression/test_ha.robot | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/e2e/tests/regression/test_ha.robot b/e2e/tests/regression/test_ha.robot index a3c04f66c4..bb86936c57 100644 --- a/e2e/tests/regression/test_ha.robot +++ b/e2e/tests/regression/test_ha.robot @@ -21,15 +21,17 @@ ${RETRY_INTERVAL} 1 *** Test Cases *** Disrupt Data Plane Traffic For Less Than Long Engine Replica Timeout - Given Set setting engine-replica-timeout to 8 + Given Set setting engine-replica-timeout to 15 And Set setting auto-salvage to false And Create storageclass longhorn-test with dataEngine=v1 And Create statefulset 0 using RWO volume with longhorn-test storageclass - And Drop instance-manager egress traffic of statefulset 0 for 10 seconds without waiting for completion - Then Write 1024 MB data to file data in statefulset 0 - And Wait for volume of statefulset 0 attached and degraded - And Wait for volume of statefulset 0 healthy - And Check statefulset 0 data in file data is intact + FOR ${i} IN RANGE ${LOOP_COUNT} + And Drop instance-manager egress traffic of statefulset 0 for 25 seconds without waiting for completion + Then Write 1024 MB data to file data in statefulset 0 + And Wait for volume of statefulset 0 attached and degraded + And Wait for volume of statefulset 0 healthy + And Check statefulset 0 data in file data is intact + END Don't Orphan Processes When Node Not Ready [Tags] robot:skip