aboutsummaryrefslogtreecommitdiff
path: root/integration_tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-04-10 21:29:42 +0200
committerJakob Unterwurzacher2016-04-10 21:31:15 +0200
commitbd5405189eb27d463e25c43691b19dbdf174d3a8 (patch)
treea78d909a5fac9b3c642ea5c1a715a08bffa54965 /integration_tests
parentbd1f17ca9f210b318e28d7ed233698b950d564b8 (diff)
Fix "go tool vet -shadow=true" warnings
Among those one real bug.
Diffstat (limited to 'integration_tests')
-rw-r--r--integration_tests/performance_test.go3
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()