diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-04 02:22:32 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-04 02:22:32 -0700 |
| commit | 0e5286258672efeeb8e3f62eb15be3542627d5da (patch) | |
| tree | 02e5dfab44f9b9baf212b6adaf0134445da75eca | |
| parent | 2f7710a75d8dd2f8eab9cb4e71f92c7787f00f76 (diff) | |
| download | seaweedfs-0e5286258672efeeb8e3f62eb15be3542627d5da.tar.xz seaweedfs-0e5286258672efeeb8e3f62eb15be3542627d5da.zip | |
avoid the test that depends on ordering in a different folder
| -rw-r--r-- | weed/storage/disk_location_ec_test.go | 31 | ||||
| -rw-r--r-- | weed/storage/erasure_coding/3.ec07 | 0 | ||||
| -rw-r--r-- | weed/storage/erasure_coding/3.ecx | 0 |
3 files changed, 0 insertions, 31 deletions
diff --git a/weed/storage/disk_location_ec_test.go b/weed/storage/disk_location_ec_test.go deleted file mode 100644 index c231ac0a9..000000000 --- a/weed/storage/disk_location_ec_test.go +++ /dev/null @@ -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()) - } - -} diff --git a/weed/storage/erasure_coding/3.ec07 b/weed/storage/erasure_coding/3.ec07 deleted file mode 100644 index e69de29bb..000000000 --- a/weed/storage/erasure_coding/3.ec07 +++ /dev/null diff --git a/weed/storage/erasure_coding/3.ecx b/weed/storage/erasure_coding/3.ecx deleted file mode 100644 index e69de29bb..000000000 --- a/weed/storage/erasure_coding/3.ecx +++ /dev/null |
