Skip to content

Commit 621d8b4

Browse files
kvapsclaude
andcommitted
test(e2e): bump wait_uptodate timeout 60s → 120s
Initial DRBD sync on a fresh RD takes 30-60s on the busy dev stand; 60s timeout was racing reliably with completion. 120s gives the margin without slowing the success path (loop polls every 2s). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent 54923ad commit 621d8b4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/e2e/lib.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ on_node() {
3030
kubectl -n "$NS" exec "$pod" -- "$@"
3131
}
3232

33-
# wait_uptodate POD waits up to 60s for both replicas of $RD to reach
33+
# wait_uptodate POD waits up to 120s for both replicas of $RD to reach
3434
# disk:UpToDate. Caller defines $RD and the two node names $PRIMARY,
35-
# $PEER before calling. Exits non-zero on timeout.
35+
# $PEER before calling. Exits non-zero on timeout. Initial sync on
36+
# a fresh DRBD resource takes 30-60s on a busy stand; 120s is the
37+
# margin.
3638
wait_uptodate() {
37-
local rd=$1 primary=$2 peer=$3 deadline=$(( $(date +%s) + 60 ))
39+
local rd=$1 primary=$2 peer=$3 deadline=$(( $(date +%s) + 120 ))
3840

3941
while (( $(date +%s) < deadline )); do
4042
local p1 p2

0 commit comments

Comments
 (0)