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