aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_test.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-16 10:51:03 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-16 10:51:03 -0800
commit68775d29e3a2e2a65b3b719c1d087b6616a0d18e (patch)
tree252e63f08fbe0fcf49983cb617ece8fe9f6055db /weed/shell/command_ec_test.go
parent7403cd43c5e6fa7a7b32dba817bdf99c1f27b2eb (diff)
downloadseaweedfs-68775d29e3a2e2a65b3b719c1d087b6616a0d18e.tar.xz
seaweedfs-68775d29e3a2e2a65b3b719c1d087b6616a0d18e.zip
fix tests
Diffstat (limited to 'weed/shell/command_ec_test.go')
-rw-r--r--weed/shell/command_ec_test.go1
1 files changed, 1 insertions, 0 deletions
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),