mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-13 17:56:44 +08:00
17 lines
277 B
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")
|
|
}
|
|
} |