Browse Source

clean up test files

pull/991/head
Chris Lu 6 years ago
parent
commit
5c6c757619
  1. 2
      weed/storage/erasure_coding/ec_test.go

2
weed/storage/erasure_coding/ec_test.go

@ -178,7 +178,7 @@ func readFromFile(file *os.File, data []byte, ecFileOffset int64) (err error) {
func removeGeneratedFiles(baseFileName string) { func removeGeneratedFiles(baseFileName string) {
for i := 0; i < DataShardsCount+ParityShardsCount; i++ { for i := 0; i < DataShardsCount+ParityShardsCount; i++ {
fname := fmt.Sprintf("%s.ec%02d", baseFileName, i+1)
fname := fmt.Sprintf("%s.ec%02d", baseFileName, i)
os.Remove(fname) os.Remove(fname)
} }
os.Remove(baseFileName + ".ecx") os.Remove(baseFileName + ".ecx")

Loading…
Cancel
Save