engine: test: Pass in the go test verbose flag

This hooks up our debug variable to the go test verbose flag.
This commit is contained in:
James Shubin
2018-05-09 12:11:35 -04:00
parent 299080f590
commit 3ced981d28
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ import (
)
func fakeInit(t *testing.T) *engine.Init {
debug := true
debug := testing.Verbose() // set via the -test.v flag to `go test`
logf := func(format string, v ...interface{}) {
t.Logf("test: "+format, v...)
}