functional.yaml: try lower snapshot count for flaky tests, error threshold

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
Gyuho Lee
2019-08-07 16:03:01 -07:00
parent a41bd303ec
commit 0926a434b7
2 changed files with 5 additions and 5 deletions

View File

@ -212,8 +212,8 @@ func (clus *Cluster) doRound() error {
)
// with network delay, some ongoing requests may fail
// only return error, if more than 10% of QPS requests fail
if cnt > int(clus.Tester.StressQPS)/10 {
// only return error, if more than 30% of QPS requests fail
if cnt > int(float64(clus.Tester.StressQPS)*0.3) {
return fmt.Errorf("expected no error in %q, got %q", fcase.String(), ess)
}
}