You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
277 B

  1. package storage
  2. import (
  3. "testing"
  4. )
  5. func TestLoadingEcShards(t *testing.T) {
  6. dl := NewDiskLocation("./erasure_coding", 100)
  7. err := dl.loadAllEcShards()
  8. if err != nil {
  9. t.Errorf("load all ec shards: %v", err)
  10. }
  11. if len(dl.ecShards)!=1 {
  12. t.Errorf("loading err")
  13. }
  14. }