mirror of
https://github.com/prometheus/node_exporter
synced 2025-01-11 16:09:54 +00:00
Fix format string in test
This commit is contained in:
parent
f5e1bbad5a
commit
b03ff7cb9b
@ -52,10 +52,10 @@ func TestMemInfo(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if memInfo["MemTotal"] != memTotalExpected {
|
||||
t.Fatalf("Unexpected memory: %s != %s", memInfo["MemTotal"], memTotalExpected)
|
||||
t.Fatalf("Unexpected memory: %f != %d", memInfo["MemTotal"], memTotalExpected)
|
||||
}
|
||||
if memInfo["DirectMap2M"] != memDirectMap2MExpected {
|
||||
t.Fatalf("Unexpected memory: %s != %s", memInfo["MemTotal"], memTotalExpected)
|
||||
t.Fatalf("Unexpected memory: %f != %d", memInfo["MemTotal"], memTotalExpected)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user