diff options
author | Jakob Unterwurzacher | 2015-11-15 15:05:15 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-15 15:05:15 +0100 |
commit | 40882c6e49186510a8adc6ae4b41a879c5d3278f (patch) | |
tree | 789510deb01d2a1fa7db5bd0d44f998b11860399 /integration_tests/performance_test.go | |
parent | 296bdf3af21a8964dcb884ff41ea7556cc811e9a (diff) |
tests: add example_filesystems, test password and -masterkey mount
Diffstat (limited to 'integration_tests/performance_test.go')
-rw-r--r-- | integration_tests/performance_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integration_tests/performance_test.go b/integration_tests/performance_test.go index b24474c..c77c79d 100644 --- a/integration_tests/performance_test.go +++ b/integration_tests/performance_test.go @@ -12,7 +12,7 @@ func BenchmarkStreamWrite(t *testing.B) { buf := make([]byte, 1024*1024) t.SetBytes(int64(len(buf))) - file, err := os.Create(plainDir + "BenchmarkWrite") + file, err := os.Create(defaultPlainDir + "BenchmarkWrite") if err != nil { t.FailNow() } @@ -33,7 +33,7 @@ func BenchmarkStreamRead(t *testing.B) { buf := make([]byte, 1024*1024) t.SetBytes(int64(len(buf))) - fn := plainDir + "BenchmarkWrite" + fn := defaultPlainDir + "BenchmarkWrite" fi, err := os.Stat(fn) if err != nil { t.Fatal(err) @@ -80,7 +80,7 @@ func BenchmarkStreamRead(t *testing.B) { // createFiles - create "count" files of size "size" bytes each func createFiles(t *testing.B, count int, size int) { - dir := fmt.Sprintf("%s/createFiles_%d_%d", plainDir, count, size) + dir := fmt.Sprintf("%s/createFiles_%d_%d", defaultPlainDir, count, size) err := os.Mkdir(dir, 0777) if err != nil { t.Fatal(err) |