Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed Nov 1, 2024
1 parent ffb4255 commit 2d10247
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/model/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ type TestContext struct {
metricsRegistry metrics.Registry
closeNotify chan struct{}
dispatcher command.Dispatcher
eventDispatcher event.Dispatcher
}

func (ctx *TestContext) GetEnrollmentJwtSigner() (jwtsigner.Signer, error) {
return ctx, nil
}

func (ctx *TestContext) GetEventDispatcher() event.Dispatcher {
panic("implement me")
return ctx.eventDispatcher
}

func (self *TestContext) GetCloseNotifyChannel() <-chan struct{} {
Expand Down Expand Up @@ -190,6 +191,7 @@ func NewTestContext(t testing.TB) *TestContext {
EncodeDecodeCommands: true,
Limiter: command.NoOpRateLimiter{},
},
eventDispatcher: event.DispatcherMock{},
}

ctx.TestContext.Init()
Expand Down

0 comments on commit 2d10247

Please sign in to comment.