mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
internal/model: fix formatting directive in test
This commit is contained in:
parent
1795e0a290
commit
2592ba7399
@ -38,10 +38,10 @@ func TestSourceFileOK(t *testing.T) {
|
|||||||
n, err := fd.Read(bs)
|
n, err := fd.Read(bs)
|
||||||
|
|
||||||
if n != len(bs) {
|
if n != len(bs) {
|
||||||
t.Fatal("Wrong read length %d != %d", n, len(bs))
|
t.Fatalf("Wrong read length %d != %d", n, len(bs))
|
||||||
}
|
}
|
||||||
if string(bs) != "foobar" {
|
if string(bs) != "foobar" {
|
||||||
t.Fatal("Wrong contents %s != foobar", bs)
|
t.Fatalf("Wrong contents %s != foobar", string(bs))
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.failed(); err != nil {
|
if err := s.failed(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user