Skip to content

Commit

Permalink
Merge pull request influxdata#6729 from influxdata/jl-stress-v2-fix
Browse files Browse the repository at this point in the history
Correct stress/v2 tests to not depend on $GOPATH
  • Loading branch information
joelegasse committed May 26, 2016
2 parents d2672a3 + 04c72a2 commit 5163e74
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions stress/v2/stressql/parser_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
package stressql

import (
"fmt"
"os"
"testing"
)
import "testing"

// Pulls the default configFile and makes sure it parses
func TestParseStatements(t *testing.T) {
gopath := os.Getenv("GOPATH")
if gopath == "" {
t.Error("$GOPATH not set")
}
stmts, err := ParseStatements(fmt.Sprintf("%v/src/github.com/influxdata/influxdb/stress/v2/file.iql", gopath))
stmts, err := ParseStatements("../file.iql")
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 5163e74

Please sign in to comment.