test: Fix gosimple errors
Getting gosimple suggestion while running test script, so this PR is for fixing gosimple S1019 check. raft/node_test.go:456:40: should use make([]raftpb.Entry, 1) instead (S1019) raft/node_test.go:457:49: should use make([]raftpb.Entry, 1) instead (S1019) raft/node_test.go:458:43: should use make([]raftpb.Message, 1) instead (S1019) Refer https://github.com/dominikh/go-tools/blob/master/cmd/gosimple/README.md#checks for more information.
This commit is contained in:
@ -112,7 +112,7 @@ func TestElectionFailover(t *testing.T) {
|
||||
cctx, cancel := context.WithCancel(context.TODO())
|
||||
defer cancel()
|
||||
|
||||
ss := make([]*concurrency.Session, 3, 3)
|
||||
ss := make([]*concurrency.Session, 3)
|
||||
|
||||
for i := 0; i < 3; i++ {
|
||||
var err error
|
||||
|
Reference in New Issue
Block a user