INNER CODE UNIT · Go
newTestNotifier
kimdre/doco-cd · cmd/doco-cd/controlplane_test_helpers_test.go:54
func newTestNotifier(t *testing.T) notification.Sender {
t.Helper()
notifier, err := notification.New(notification.Config{})
if err != nil {
t.Fatalf("failed to create test notifier: %v", err)
}
return notifier
}
// newTestDeployment builds a *controlplane.Deployment backed by a fresh
// reconciliation manager and source preparer, for tests that previously wired
// a bare *reconciliation.Manager directly into handleEvent/RunPoll.
func newTestDeployment(t *testing.T, appConfig *app.Config, dataMountPoint container.MountPoint, reconciliationDeps reconciliation.Dependencies) *controlplane.Deployment {
t.Helper()
if reconciliationDeps.Contexts == nil {