featurebase/pql
Ben Johnson ca29f7692b
Fix failing tests when IPv6 is disabled.
Turning off IPv6 causes the tests to fail because the Go
`net.Listen()` function obtains a `[::]` address when using
a `localhost:0` bind address. Looking through the Go source
code, I don't see a good way to fix that.

This change adds a test flag to allow users to specify the
network name when running the test:

```sh
go test github.com/pilosa/pilosa/server -network tcp4
```
2017-06-01 14:43:59 -06:00
..
ast.go Fix typo in error message 2017-05-16 17:56:16 -05:00
ast_test.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
doc.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
parser.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
parser_test.go Fix failing tests when IPv6 is disabled. 2017-06-01 14:43:59 -06:00
scanner.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
scanner_test.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
token.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00