1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-09 02:20:34 +02:00
seaweedfs/weed/storage/disk_location_ec_test.go

17 lines
277 B
Go

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)
}
if len(dl.ecShards)!=1 {
t.Errorf("loading err")
}
}