Add a logger to testing backend config so it's available to backends during unit tests
This commit is contained in:
parent
37deda3e60
commit
d00374fe3c
|
@ -1,6 +1,8 @@
|
||||||
package logical
|
package logical
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
@ -72,7 +74,7 @@ func TestSystemView() *StaticSystemView {
|
||||||
|
|
||||||
func TestBackendConfig() *BackendConfig {
|
func TestBackendConfig() *BackendConfig {
|
||||||
return &BackendConfig{
|
return &BackendConfig{
|
||||||
Logger: nil,
|
Logger: log.New(os.Stdout, "", log.LstdFlags),
|
||||||
System: TestSystemView(),
|
System: TestSystemView(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue