mirror of
https://github.com/ceph/go-ceph
synced 2024-12-25 15:42:30 +00:00
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:
parent
63370f4df6
commit
6f7879428f
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user