fix tests

This commit is contained in:
Thom Seddon 2019-01-30 17:04:33 +00:00
parent ae95e8b2e5
commit 0f278d516b
3 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,8 @@ sudo: false
go: go:
- "1.10" - "1.10"
install: install:
- go get github.com/BurntSushi/toml
- go get github.com/gorilla/mux
- go get github.com/namsral/flag - go get github.com/namsral/flag
- go get github.com/sirupsen/logrus - go get github.com/sirupsen/logrus
script: go test -v ./... script: go test -v ./...

View File

@ -1,8 +1,8 @@
package main package main
import ( // import (
"testing" // "testing"
) // )
/** /**
* Tests * Tests

View File

@ -21,7 +21,10 @@ import (
func init() { func init() {
fw = &ForwardAuth{} fw = &ForwardAuth{}
config = NewConfig() config = NewConfig()
log = NewLogger("panic", "pretty")
logLevel := "panic"
config.LogLevel = &logLevel
log = NewLogger()
} }
/** /**