Skip to content

Commit

Permalink
Simplified node creation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akyoto committed Mar 5, 2019
1 parent c76275b commit 868ff14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
const nodeCount = 5

func TestClusterClose(t *testing.T) {
nodes := make([]cluster.Node, nodeCount, nodeCount)
nodes := make([]cluster.Node, nodeCount)

for i := 0; i < nodeCount; i++ {
nodes[i] = cluster.New(3000)
Expand All @@ -31,7 +31,7 @@ func TestClusterClose(t *testing.T) {
}

func TestClusterBroadcast(t *testing.T) {
nodes := make([]cluster.Node, nodeCount, nodeCount)
nodes := make([]cluster.Node, nodeCount)
wg := sync.WaitGroup{}
message := "hello"

Expand Down

0 comments on commit 868ff14

Please sign in to comment.