Skip to content

Commit

Permalink
fix: use correct count of parameters to call tree service
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorien Grönwald committed Feb 28, 2025
1 parent ebd677e commit fb60264
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/service/domain/tree/tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ func TestTreeService_Ready(t *testing.T) {
treeRepo := storageMock.NewMockTreeRepository(t)
sensorRepo := storageMock.NewMockSensorRepository(t)

svc := tree.NewTreeService(treeRepo, sensorRepo, nil, nil, nil)
svc := tree.NewTreeService(treeRepo, sensorRepo, nil, nil)

// when
result := svc.Ready()
Expand All @@ -1035,7 +1035,7 @@ func TestTreeService_Ready(t *testing.T) {
// given
sensorRepo := storageMock.NewMockSensorRepository(t)

svc := tree.NewTreeService(nil, sensorRepo, nil, nil, nil)
svc := tree.NewTreeService(nil, sensorRepo, nil, nil)

// when
result := svc.Ready()
Expand All @@ -1048,7 +1048,7 @@ func TestTreeService_Ready(t *testing.T) {
// given
treeRepo := storageMock.NewMockTreeRepository(t)

svc := tree.NewTreeService(treeRepo, nil, nil, nil, nil)
svc := tree.NewTreeService(treeRepo, nil, nil, nil)

// when
result := svc.Ready()
Expand All @@ -1059,7 +1059,7 @@ func TestTreeService_Ready(t *testing.T) {

t.Run("should return false when both treeRepo and sensorRepo are nil", func(t *testing.T) {
// given
svc := tree.NewTreeService(nil, nil, nil, nil, nil)
svc := tree.NewTreeService(nil, nil, nil, nil)

// when
result := svc.Ready()
Expand Down

0 comments on commit fb60264

Please sign in to comment.