integrate events into the servers (#1355)

This commit is contained in:
Jim authored and GitHub committed 2021-07-08 15:50:25 -04:00
1 parent ec7577c5fe
commit 1daa3ebefe
37 files changed
+2081 -298

No files matched your search

+5
View File
@@ -448,9 +448,14 @@ func NewTestController(t *testing.T, opts *TestControllerOpts) *TestController {
if tc.b.Logger == nil {
tc.b.Logger = hclog.New(&hclog.LoggerOptions{
Level: hclog.Trace,
Mutex: tc.b.StderrLock,
})
}
if err := tc.b.SetupEventing(tc.b.Logger, tc.b.StderrLock, base.WithEventerConfig(opts.Config.Eventing)); err != nil {
t.Fatal(err)
}
if opts.Config.Controller == nil {
opts.Config.Controller = new(config.Controller)
}