From 68775d29e3a2e2a65b3b719c1d087b6616a0d18e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 16 Feb 2021 10:51:03 -0800 Subject: fix tests --- weed/shell/command_ec_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'weed/shell/command_ec_test.go') diff --git a/weed/shell/command_ec_test.go b/weed/shell/command_ec_test.go index 4fddcbea5..14235d565 100644 --- a/weed/shell/command_ec_test.go +++ b/weed/shell/command_ec_test.go @@ -127,6 +127,7 @@ func newEcNode(dc string, rack string, dataNodeId string, freeEcSlot int) *EcNod return &EcNode{ info: &master_pb.DataNodeInfo{ Id: dataNodeId, + DiskInfos: make(map[string]*master_pb.DiskInfo), }, dc: dc, rack: RackId(rack), -- cgit v1.2.3 From 3575d41009e4367658e75e6ae780c6260b80daf9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 17 Feb 2021 20:57:08 -0800 Subject: go fmt --- weed/shell/command_ec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weed/shell/command_ec_test.go') diff --git a/weed/shell/command_ec_test.go b/weed/shell/command_ec_test.go index 14235d565..a1226adbb 100644 --- a/weed/shell/command_ec_test.go +++ b/weed/shell/command_ec_test.go @@ -126,7 +126,7 @@ func TestCommandEcBalanceVolumeEvenButRackUneven(t *testing.T) { func newEcNode(dc string, rack string, dataNodeId string, freeEcSlot int) *EcNode { return &EcNode{ info: &master_pb.DataNodeInfo{ - Id: dataNodeId, + Id: dataNodeId, DiskInfos: make(map[string]*master_pb.DiskInfo), }, dc: dc, -- cgit v1.2.3