mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-19 15:31:05 +02:00
18 lines
309 B
Go
18 lines
309 B
Go
package shell
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestVolumeServerEvacuate(t *testing.T) {
|
|
topologyInfo := parseOutput(topoData)
|
|
|
|
volumeServer := "192.168.1.4:8080"
|
|
|
|
if err := evacuateNormalVolumes(nil, topologyInfo, volumeServer, true, false, os.Stdout); err != nil {
|
|
t.Errorf("evacuate: %v", err)
|
|
}
|
|
|
|
}
|