Skip to content

Commit

Permalink
PMM-12375 fix service_test.go by adding params
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Sep 16, 2023
1 parent d9cc8e4 commit 8595ae6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion managed/services/inventory/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func setup(t *testing.T) (*ServicesService, *AgentsService, *NodesService, func(
as := &mockAgentService{}
as.Test(t)

sib := &mockServiceInfoBroker{}
sib.Test(t)

teardown := func(t *testing.T) {
t.Helper()
uuid.SetRand(nil)
Expand All @@ -77,7 +80,7 @@ func setup(t *testing.T) (*ServicesService, *AgentsService, *NodesService, func(
}

return NewServicesService(db, r, state, vmdb, vc),
NewAgentsService(db, r, state, vmdb, cc, as),
NewAgentsService(db, r, state, vmdb, cc, sib, as),
NewNodesService(db, r, state, vmdb),
teardown,
logger.Set(context.Background(), t.Name()),
Expand Down

0 comments on commit 8595ae6

Please sign in to comment.