mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-31 14:56:35 +00:00
mi: make timeout configurable for build functions (#2377)
This commit is contained in:
@@ -53,7 +53,7 @@ func TestMultipleDirectories(t *testing.T) {
|
||||
errCh := make(chan error, 1)
|
||||
|
||||
go func() {
|
||||
errCh <- textFileCollector.Collect(metrics)
|
||||
errCh <- textFileCollector.Collect(metrics, 0)
|
||||
|
||||
close(metrics)
|
||||
}()
|
||||
@@ -91,7 +91,7 @@ func TestDuplicateFileName(t *testing.T) {
|
||||
errCh := make(chan error, 1)
|
||||
|
||||
go func() {
|
||||
errCh <- textFileCollector.Collect(metrics)
|
||||
errCh <- textFileCollector.Collect(metrics, 0)
|
||||
|
||||
close(metrics)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user