aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_server_evacuate_test.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-01 12:09:42 -0700
committerchrislu <chris.lu@gmail.com>2022-07-01 12:09:42 -0700
commitbee3a7c7987ecd23450febcc37651312ddf4fffa (patch)
treec6a75dbbbb5c4253d5223983b53235b0861b0daf /weed/shell/command_volume_server_evacuate_test.go
parentddb0f6bc749eee964c0b1c0b4e8ec3f6df994c7e (diff)
downloadseaweedfs-bee3a7c7987ecd23450febcc37651312ddf4fffa.tar.xz
seaweedfs-bee3a7c7987ecd23450febcc37651312ddf4fffa.zip
fix tests
Diffstat (limited to 'weed/shell/command_volume_server_evacuate_test.go')
-rw-r--r--weed/shell/command_volume_server_evacuate_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_volume_server_evacuate_test.go b/weed/shell/command_volume_server_evacuate_test.go
index 5753af78b..2cdb94a60 100644
--- a/weed/shell/command_volume_server_evacuate_test.go
+++ b/weed/shell/command_volume_server_evacuate_test.go
@@ -10,7 +10,8 @@ func TestVolumeServerEvacuate(t *testing.T) {
volumeServer := "192.168.1.4:8080"
- if err := evacuateNormalVolumes(nil, topologyInfo, volumeServer, true, false, os.Stdout); err != nil {
+ c := commandVolumeServerEvacuate{}
+ if err := c.evacuateNormalVolumes(nil, topologyInfo, volumeServer, true, false, os.Stdout); err != nil {
t.Errorf("evacuate: %v", err)
}