lib/logger, lib/model: Correct printf format strings in tests

This is a build (test) failure in Go 1.10.
This commit is contained in:
Jakob Borg 2018-01-12 08:26:33 +01:00
parent 14df5211af
commit 6e0f64017a
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ func TestRecorder(t *testing.T) {
t.Fatalf("unexpected line count: %d", len(lines))
}
if lines[0].Message != "hah" {
t.Errorf("incorrect line: %s", lines[0])
t.Errorf("incorrect line: %s", lines[0].Message)
}
}

View File

@ -3082,7 +3082,7 @@ func TestVersionRestore(t *testing.T) {
t.Errorf("unexpected %s", name)
}
if len(vers) != cnt {
t.Errorf("%s: %s != %s", name, cnt, len(vers))
t.Errorf("%s: %d != %d", name, cnt, len(vers))
}
// Delete, so we can check if we didn't hit something we expect afterwards.
delete(expectedVersions, name)