fix tests
This commit is contained in:
parent
ae95e8b2e5
commit
0f278d516b
@ -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 ./...
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
// import (
|
||||||
"testing"
|
// "testing"
|
||||||
)
|
// )
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests
|
* Tests
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user