aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse/longname_perf_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-25 15:32:46 +0200
committerJakob Unterwurzacher2016-09-25 16:43:17 +0200
commitffdb7cd47af8488ff282dbcbefdf884b9aadadff (patch)
tree6113d198427b800c9ccbe1d3e73f59cc91e0011a /tests/reverse/longname_perf_test.go
parent2050c7f3b3822a4a3329d4ba5b146d269ef05b4d (diff)
reverse: more thorough longname stat test
Now also verifies the returned file size.
Diffstat (limited to 'tests/reverse/longname_perf_test.go')
-rw-r--r--tests/reverse/longname_perf_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/reverse/longname_perf_test.go b/tests/reverse/longname_perf_test.go
index f170ad7..1707cea 100644
--- a/tests/reverse/longname_perf_test.go
+++ b/tests/reverse/longname_perf_test.go
@@ -1,7 +1,6 @@
package reverse_test
import (
- "bytes"
"fmt"
"os"
"testing"
@@ -13,7 +12,6 @@ func genName(i int, postfix string) string {
// Create 10000 files with long names
func generateLongnameFiles(dir string) {
- x240 := string(bytes.Repeat([]byte("x"), 240))
for i := 0; i < 100000; i++ {
n := genName(i, x240)
f, err := os.Create(dir + "/" + n)