mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
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:
parent
14df5211af
commit
6e0f64017a
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user