File: simple_test.go

package info (click to toggle)
golang-github-hashicorp-raft 1.0.0%2Bgit20180823.82694fb-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 704 kB
  • sloc: makefile: 17; sh: 9
file content (19 lines) | stat: -rw-r--r-- 481 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package fuzzy

import (
	"testing"
	"time"
)

// this runs a 5 node cluster with verifications turned on, but no failures or issues injected.
func TestRaft_NoIssueSanity(t *testing.T) {
	v := appendEntriesVerifier{}
	v.Init()
	cluster := newRaftCluster(t, testLogWriter, "node", 5, &v)
	s := newApplySource("NoIssueSanity")
	applyCount := cluster.ApplyN(t, time.Minute, s, 10000)
	cluster.Stop(t, time.Minute)
	v.Report(t)
	cluster.VerifyLog(t, applyCount)
	cluster.VerifyFSM(t)
}