Fix format string in test

This commit is contained in:
Johannes 'fish' Ziemke 2014-08-13 13:36:16 +02:00
parent f5e1bbad5a
commit b03ff7cb9b

View file

@ -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)
}
}