From 6f7879428fea0cc2098d0a3b52460339f223c786 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 27 Sep 2022 10:28:20 -0400 Subject: [PATCH] cephfs admin: add additional delay when module is enabled There was continued flakiness when the tests that enabled the cephfs mirroring module were enabled. This change adds another 200 ms delay to hopefully cover the time that might occur as the mgr has a new module enabled and restart. But unfortunately this is still a bit of a wild guess. Signed-off-by: John Mulligan --- cephfs/admin/mirror_workflow_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cephfs/admin/mirror_workflow_test.go b/cephfs/admin/mirror_workflow_test.go index 1c1a361..a3ca9ce 100644 --- a/cephfs/admin/mirror_workflow_test.go +++ b/cephfs/admin/mirror_workflow_test.go @@ -33,6 +33,8 @@ func waitForMirroring(t *testing.T, fsa *FSAdmin) { require.NoError(t, err) for _, emod := range modinfo.EnabledModules { if emod == "mirroring" { + // give additional time for mgr to restart(?) + time.Sleep(200 * time.Millisecond) return } }