From 98bc93cf31c67ad5d8fe67bbc1ccae46a68e1e8d Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 13 Mar 2023 10:00:27 -0700 Subject: [PATCH] fix tests --- weed/shell/command_volume_server_evacuate_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/weed/shell/command_volume_server_evacuate_test.go b/weed/shell/command_volume_server_evacuate_test.go index 4563f38ba..3983c62e1 100644 --- a/weed/shell/command_volume_server_evacuate_test.go +++ b/weed/shell/command_volume_server_evacuate_test.go @@ -6,7 +6,12 @@ import ( ) func TestVolumeServerEvacuate(t *testing.T) { - c := commandVolumeServerEvacuate{} + targetServer := "" + volumeRack := "rack1" + c := commandVolumeServerEvacuate{ + targetServer: &targetServer, + volumeRack: &volumeRack, + } c.topologyInfo = parseOutput(topoData) volumeServer := "192.168.1.4:8080"