aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_fix_replication_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_volume_fix_replication_test.go')
-rw-r--r--weed/shell/command_volume_fix_replication_test.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/weed/shell/command_volume_fix_replication_test.go b/weed/shell/command_volume_fix_replication_test.go
index 89ab9f0c1..97f270306 100644
--- a/weed/shell/command_volume_fix_replication_test.go
+++ b/weed/shell/command_volume_fix_replication_test.go
@@ -332,7 +332,10 @@ func TestMisplacedChecking(t *testing.T) {
location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn1"}},
},
{
- location: &location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn2"}},
+ location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn2"}},
+ },
+ {
+ location: &location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn3"}},
},
},
expected: false,
@@ -345,10 +348,13 @@ func TestMisplacedChecking(t *testing.T) {
location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn1"}},
},
{
- location: &location{"dc1", "r2", &master_pb.DataNodeInfo{Id: "dn2"}},
+ location: &location{"dc1", "r1", &master_pb.DataNodeInfo{Id: "dn2"}},
+ },
+ {
+ location: &location{"dc2", "r2", &master_pb.DataNodeInfo{Id: "dn3"}},
},
},
- expected: false,
+ expected: true,
},
{
name: "test 100",