gopkg.in/rethinkdb/rethinkdb-go.v6@v6.2.2/internal/integration/reql_tests/gorethink_test.go (about) 1 //go:generate ../../gen_tests/gen_tests.sh 2 3 package reql_tests 4 5 import ( 6 "flag" 7 "os" 8 "runtime" 9 10 r "gopkg.in/rethinkdb/rethinkdb-go.v6" 11 ) 12 13 var url string 14 15 func init() { 16 // Fixing test.testlogfile parsing error on Go 1.13+. 17 if runtime.Version() < "go1.13" { 18 flag.Parse() 19 } 20 21 r.SetVerbose(true) 22 23 // If the test is being run by wercker look for the rethink url 24 url = os.Getenv("RETHINKDB_URL") 25 if url == "" { 26 url = "localhost:28015" 27 } 28 }