Skip to content

Commit

Permalink
functional.yaml: try lower snapshot count for flaky tests, error thre…
Browse files Browse the repository at this point in the history
…shold

Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Aug 8, 2019
1 parent 03bd100 commit ca9857b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions functional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ agent-configs:
initial-cluster: s1=https://127.0.0.1:1381,s2=https://127.0.0.1:2381,s3=https://127.0.0.1:3381
initial-cluster-state: new
initial-cluster-token: tkn
snapshot-count: 10000
snapshot-count: 2000
quota-backend-bytes: 10740000000 # 10 GiB
pre-vote: true
initial-corrupt-check: true
Expand Down Expand Up @@ -80,7 +80,7 @@ agent-configs:
initial-cluster: s1=https://127.0.0.1:1381,s2=https://127.0.0.1:2381,s3=https://127.0.0.1:3381
initial-cluster-state: new
initial-cluster-token: tkn
snapshot-count: 10000
snapshot-count: 2000
quota-backend-bytes: 10740000000 # 10 GiB
pre-vote: true
initial-corrupt-check: true
Expand Down Expand Up @@ -131,7 +131,7 @@ agent-configs:
initial-cluster: s1=https://127.0.0.1:1381,s2=https://127.0.0.1:2381,s3=https://127.0.0.1:3381
initial-cluster-state: new
initial-cluster-token: tkn
snapshot-count: 10000
snapshot-count: 2000
quota-backend-bytes: 10740000000 # 10 GiB
pre-vote: true
initial-corrupt-check: true
Expand Down
2 changes: 1 addition & 1 deletion functional/tester/cluster_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ 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 {
if cnt > int(clus.Tester.StressQPS)/20 {
return fmt.Errorf("expected no error in %q, got %q", fcase.String(), ess)
}
}
Expand Down

0 comments on commit ca9857b

Please sign in to comment.