Add a logger to testing backend config so it's available to backends during unit tests

This commit is contained in:
Jeff Mitchell 2016-06-30 09:17:14 -04:00
parent 37deda3e60
commit d00374fe3c

View file

@ -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(),
} }
} }