diff options
Diffstat (limited to 'integration_tests')
-rw-r--r-- | integration_tests/performance_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/integration_tests/performance_test.go b/integration_tests/performance_test.go index 83bf207..9a0399a 100644 --- a/integration_tests/performance_test.go +++ b/integration_tests/performance_test.go @@ -45,7 +45,8 @@ func BenchmarkStreamRead(t *testing.B) { if t.N > mb { // Grow file so we can satisfy the test //fmt.Printf("Growing file to %d MB... ", t.N) - f2, err := os.OpenFile(fn, os.O_WRONLY|os.O_APPEND, 0666) + var f2 *os.File + f2, err = os.OpenFile(fn, os.O_WRONLY|os.O_APPEND, 0666) if err != nil { fmt.Println(err) t.FailNow() |