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:
Manjunath A Kumatagi
2017-02-09 08:01:28 -05:00
parent c4fc8c0989
commit 0914b8b707
5 changed files with 7 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ func doRounds(rcs []roundClient, rounds int) {
var wg sync.WaitGroup
wg.Add(len(rcs))
finished := make(chan struct{}, 0)
finished := make(chan struct{})
for i := range rcs {
go func(rc *roundClient) {
defer wg.Done()