fix tests
This commit is contained in:
parent
ae95e8b2e5
commit
0f278d516b
@ -3,6 +3,8 @@ sudo: false
|
||||
go:
|
||||
- "1.10"
|
||||
install:
|
||||
- go get github.com/BurntSushi/toml
|
||||
- go get github.com/gorilla/mux
|
||||
- go get github.com/namsral/flag
|
||||
- go get github.com/sirupsen/logrus
|
||||
script: go test -v ./...
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
// import (
|
||||
// "testing"
|
||||
// )
|
||||
|
||||
/**
|
||||
* Tests
|
||||
|
@ -21,7 +21,10 @@ import (
|
||||
func init() {
|
||||
fw = &ForwardAuth{}
|
||||
config = NewConfig()
|
||||
log = NewLogger("panic", "pretty")
|
||||
|
||||
logLevel := "panic"
|
||||
config.LogLevel = &logLevel
|
||||
log = NewLogger()
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user