aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-12 14:56:34 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-07-20 18:40:50 +0500
commit39eaf426f828ff84559c591b755e9c365516487f (patch)
tree132a2a48f1175b61adc9955416ef0843fea99431 /weed
parentb5e5f6f55ad6d8fab838f5735867d1457c5aa420 (diff)
downloadseaweedfs-39eaf426f828ff84559c591b755e9c365516487f.tar.xz
seaweedfs-39eaf426f828ff84559c591b755e9c365516487f.zip
fix TestVolumeServerEvacuate
Diffstat (limited to 'weed')
-rw-r--r--weed/shell/command_volume_server_evacuate_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/weed/shell/command_volume_server_evacuate_test.go b/weed/shell/command_volume_server_evacuate_test.go
index 2cdb94a60..4563f38ba 100644
--- a/weed/shell/command_volume_server_evacuate_test.go
+++ b/weed/shell/command_volume_server_evacuate_test.go
@@ -6,12 +6,11 @@ import (
)
func TestVolumeServerEvacuate(t *testing.T) {
- topologyInfo := parseOutput(topoData)
+ c := commandVolumeServerEvacuate{}
+ c.topologyInfo = parseOutput(topoData)
volumeServer := "192.168.1.4:8080"
-
- c := commandVolumeServerEvacuate{}
- if err := c.evacuateNormalVolumes(nil, topologyInfo, volumeServer, true, false, os.Stdout); err != nil {
+ if err := c.evacuateNormalVolumes(nil, volumeServer, true, false, os.Stdout); err != nil {
t.Errorf("evacuate: %v", err)
}