mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08: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 a new issue