aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance_test.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-12-10 18:43:59 +0200
committerGitHub <noreply@github.com>2024-12-10 08:43:59 -0800
commitff1392f7f4a854d17dea13f6738a219d7bb2cf96 (patch)
tree466a8d49a2015d4ae98b45c251320bc2bdd4805e /weed/shell/command_volume_balance_test.go
parent4f6c989309c0e8c5ab887ddc089f321401795b7d (diff)
downloadseaweedfs-ff1392f7f4a854d17dea13f6738a219d7bb2cf96.tar.xz
seaweedfs-ff1392f7f4a854d17dea13f6738a219d7bb2cf96.zip
[shell] use constant for hdd of type (#6337)
use constant for hdd of type
Diffstat (limited to 'weed/shell/command_volume_balance_test.go')
-rw-r--r--weed/shell/command_volume_balance_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance_test.go b/weed/shell/command_volume_balance_test.go
index f1a0c4450..6c4b2a818 100644
--- a/weed/shell/command_volume_balance_test.go
+++ b/weed/shell/command_volume_balance_test.go
@@ -265,7 +265,7 @@ func TestBalance(t *testing.T) {
func TestVolumeSelection(t *testing.T) {
topologyInfo := parseOutput(topoData)
- vids, err := collectVolumeIdsForTierChange(topologyInfo, 1000, types.ToDiskType("hdd"), "", 20.0, 0)
+ vids, err := collectVolumeIdsForTierChange(topologyInfo, 1000, types.ToDiskType(types.HddType), "", 20.0, 0)
if err != nil {
t.Errorf("collectVolumeIdsForTierChange: %v", err)
}