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 <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2022-09-27 10:28:20 -04:00 committed by mergify[bot]
parent 63370f4df6
commit 6f7879428f

View File

@ -33,6 +33,8 @@ func waitForMirroring(t *testing.T, fsa *FSAdmin) {
require.NoError(t, err) require.NoError(t, err)
for _, emod := range modinfo.EnabledModules { for _, emod := range modinfo.EnabledModules {
if emod == "mirroring" { if emod == "mirroring" {
// give additional time for mgr to restart(?)
time.Sleep(200 * time.Millisecond)
return return
} }
} }