mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid the test that depends on ordering in a different folder
This commit is contained in:
parent
2f7710a75d
commit
0e52862586
|
@ -1,31 +0,0 @@
|
|||
package storage
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||
)
|
||||
|
||||
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.ecVolumes) != 1 {
|
||||
t.Errorf("loading err")
|
||||
}
|
||||
|
||||
fileInfos, err := ioutil.ReadDir(dl.Directory)
|
||||
if err != nil {
|
||||
t.Errorf("listing all ec shards in dir %s: %v", dl.Directory, err)
|
||||
}
|
||||
|
||||
glog.V(0).Infof("FileCount %d", len(fileInfos))
|
||||
for i, fileInfo := range fileInfos {
|
||||
glog.V(0).Infof("file:%d %s size:%d", i, fileInfo.Name(), fileInfo.Size())
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue