fixup! fixup! fixup! fixup! fixup! fix(projections): added check to make sure there cannot be 2 projections for the same table

This commit is contained in:
Iraq Jaber
2025-08-11 09:07:55 +01:00
parent 2b759df030
commit c82b0ddb11

View File

@@ -20,7 +20,7 @@ func TestStart(t *testing.T) {
name: "happy path", name: "happy path",
projections: func(t *testing.T) []projection { projections: func(t *testing.T) []projection {
ctrl := gomock.NewController(t) ctrl := gomock.NewController(t)
projections := make([]projection, 5, 5) projections := make([]projection, 5)
for i := range 5 { for i := range 5 {
mock := NewMockprojection(ctrl) mock := NewMockprojection(ctrl)
@@ -35,7 +35,7 @@ func TestStart(t *testing.T) {
{ {
name: "same projection used twice error", name: "same projection used twice error",
projections: func(t *testing.T) []projection { projections: func(t *testing.T) []projection {
projections := make([]projection, 5, 5) projections := make([]projection, 5)
ctrl := gomock.NewController(t) ctrl := gomock.NewController(t)
mock := NewMockprojection(ctrl) mock := NewMockprojection(ctrl)