Merge pull request #6729 from influxdata/jl-stress-v2-fix

Correct stress/v2 tests to not depend on $GOPATH
pull/6731/head
joelegasse 2016-05-26 11:59:47 -04:00
commit 5163e74093
1 changed files with 2 additions and 10 deletions

View File

@ -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)
}