[shell] use constant for hdd of type (#6337)

use constant for hdd of type
This commit is contained in:
Konstantin Lebedev
2024-12-10 18:43:59 +02:00
committed by GitHub
parent 4f6c989309
commit ff1392f7f4
5 changed files with 11 additions and 7 deletions

View File

@@ -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)
}