mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
cleanup + fix flaky tests in file_test.go, apic_test.go (#1773)
This commit is contained in:
parent
6798dd7ba5
commit
edced6818a
5 changed files with 391 additions and 389 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue