mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-11 13:06:36 +00:00
@@ -177,7 +177,10 @@ func TestMultipleDirectories(t *testing.T) {
|
||||
for {
|
||||
var metric dto.Metric
|
||||
val := <-metrics
|
||||
val.Write(&metric)
|
||||
err := val.Write(&metric)
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error %s", err)
|
||||
}
|
||||
got += metric.String()
|
||||
}
|
||||
}()
|
||||
@@ -208,7 +211,10 @@ func TestDuplicateFileName(t *testing.T) {
|
||||
for {
|
||||
var metric dto.Metric
|
||||
val := <-metrics
|
||||
val.Write(&metric)
|
||||
err := val.Write(&metric)
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error %s", err)
|
||||
}
|
||||
got += metric.String()
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user