From bee3a7c7987ecd23450febcc37651312ddf4fffa Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 1 Jul 2022 12:09:42 -0700 Subject: [PATCH] fix tests --- weed/shell/command_volume_server_evacuate_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }