Do not mock the system info but disable the refresh goroutine
@@ -156,14 +156,10 @@ func (a *Agent) RefreshSystemInfo(ctx context.Context) error {
var info corev2.System
var err error
- if a.config.MockSystemInfo {
- info = system.MockInfo()
- } else {
info, err = system.Info()
if err != nil {
return err
}
- }
if a.config.DetectCloudProvider {
info.CloudProvider = system.GetCloudProvider(ctx)
