1
0
Fork 0

Merge pull request #1344 from rqlite/ci-increase-election-timeout

Increase election timeout during testing
master
Philip O'Toole 1 year ago committed by GitHub
commit be2754fc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,10 @@ import (
const (
// SnapshotInterval is the period between snapshot checks
SnapshotInterval = time.Second
// ElectionTimeout is the period between elections. It's longer than
// the default to allow for slow CI systems.
ElectionTimeout = 2 * time.Second
)
var (
@ -690,6 +694,7 @@ func mustNodeEncryptedOnDisk(dir string, enableSingle, httpEncrypt bool, mux *tc
})
node.Store.SnapshotThreshold = 100
node.Store.SnapshotInterval = SnapshotInterval
node.Store.ElectionTimeout = ElectionTimeout
if err := node.Store.Open(); err != nil {
node.Deprovision()

Loading…
Cancel
Save