[3.5]backport: Reduce ExpectFunc polling interval.

Fixes issue 14275, flakes close to timeout like TestKVDelete.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
This commit is contained in:
Thomas Jungblut 2022-07-28 14:38:44 +02:00 committed by ArkaSaha30
parent 4f33d5bcaf
commit ea94399e3f
No known key found for this signature in database
GPG Key ID: C5FF37943E5BC363

View File

@ -114,7 +114,7 @@ func (ep *ExpectProcess) ExpectFunc(f func(string) bool) (string, error) {
break
}
ep.mu.Unlock()
time.Sleep(time.Millisecond * 100)
time.Sleep(time.Millisecond * 10)
}
ep.mu.Lock()
lastLinesIndex := len(ep.lines) - DEBUG_LINES_TAIL