Skip to content

Commit f3388b4

Browse files
committed
work on tests
1 parent 0a8941b commit f3388b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agenttest/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (f *FakeAgentAPI) GetResourcesMonitoringConfiguration(_ context.Context, _
219219
defer f.Unlock()
220220

221221
if f.getResourcesMonitoringConfigurationFunc == nil {
222-
return nil, xerrors.Errorf("GetResourcesMonitoringConfiguration is not implemented")
222+
return &agentproto.GetResourcesMonitoringConfigurationResponse{}, nil
223223
}
224224

225225
return f.getResourcesMonitoringConfigurationFunc()
@@ -230,7 +230,7 @@ func (f *FakeAgentAPI) PushResourcesMonitoringUsage(_ context.Context, req *agen
230230
defer f.Unlock()
231231

232232
if f.pushResourcesMonitoringUsageFunc == nil {
233-
return nil, xerrors.Errorf("PushResourcesMonitoringUsage is not implemented")
233+
return &agentproto.PushResourcesMonitoringUsageResponse{}, nil
234234
}
235235

236236
return f.pushResourcesMonitoringUsageFunc(req)

0 commit comments

Comments
 (0)