seaweedfs/weed/storage/disk_location_ec_test.go

18 lines
281 B
Go
Raw Normal View History

package storage
import (
"testing"
)
func TestLoadingEcShards(t *testing.T) {
dl := NewDiskLocation("./erasure_coding", 100)
err := dl.loadAllEcShards()
if err != nil {
t.Errorf("load all ec shards: %v", err)
}
2019-05-29 04:29:07 +00:00
if len(dl.ecVolumes) != 1 {
t.Errorf("loading err")
}
2019-05-29 04:29:07 +00:00
}