From a615f6c078c76791318c2a58efcc8baef18c25db Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Mon, 1 Jun 2015 17:48:23 +0530 Subject: tests/bitrot: Induce delay before invoking bitrot subcommands This is to prevent access to uninitialized variable in reconfigure() that's currently getting inititlized on CHILD_UP. [ NOTE: This is a temporary fix and would not be needed when BZ #1226666 is fixed. ] Change-Id: I8779073fe7f315a380b833ddc248c99958de67d0 BUG: 1226902 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/11033 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Venky Shankar --- tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t') diff --git a/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t b/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t index b15b908d21a..4d94213aa27 100644 --- a/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t +++ b/tests/bugs/bitrot/bug-1210684-scrub-pause-resume-error-handling.t @@ -24,6 +24,10 @@ TEST $CLI volume bitrot $V0 enable EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" get_bitd_count +## sleep 5 second so that timer can initialize and bitrot can reconfigure that +## timer value. +sleep 5; + ## Pause scrubber operation on volume $V0 TEST $CLI volume bitrot $V0 scrub pause -- cgit