aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location_ec_test.go
blob: 99cb242a4481a50dc1af4b02bce0216ba167ed1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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")
	}
}