From 5c6c75761963f5897f57ffcf1ec3b0ae86f836f0 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 29 May 2019 00:34:30 -0700 Subject: [PATCH] clean up test files --- weed/storage/erasure_coding/ec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/erasure_coding/ec_test.go b/weed/storage/erasure_coding/ec_test.go index 602ea0bc0..57df09525 100644 --- a/weed/storage/erasure_coding/ec_test.go +++ b/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) { 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(baseFileName + ".ecx")