cleanup + fix flaky tests in file_test.go, apic_test.go (#1773)

This commit is contained in:
mmetc 2022-09-30 16:01:42 +02:00 committed by GitHub
parent 6798dd7ba5
commit edced6818a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 391 additions and 389 deletions

View file

@ -311,10 +311,7 @@ func (s *APIServer) Run(apiReady chan bool) error {
return nil
})
s.apic.metricsTomb.Go(func() error {
if err := s.apic.SendMetrics(); err != nil {
log.Errorf("capi metrics: %s", err)
return err
}
s.apic.SendMetrics(make(chan bool))
return nil
})
}