use t.Fatal() to output the err message where the values used for formatting

text does not appear to contain a placeholder

Signed-off-by: Helen Xie <chenjg@harmonycloud.cn>
v0.8
fate-grand-order 2017-02-21 16:53:29 +08:00
parent c450963994
commit 54ee06727e
1 changed files with 4 additions and 4 deletions

View File

@ -43,15 +43,15 @@ func TestReadAll(t *testing.T) {
} }
if di[0] != "test1" { if di[0] != "test1" {
t.Fatalf("First element is not test1") t.Fatal("First element is not test1")
} }
if di[1] != "/test2" { if di[1] != "/test2" {
t.Fatalf("Second element is not /test2") t.Fatal("Second element is not /test2")
} }
if di[2] != "/a/file/here" { if di[2] != "/a/file/here" {
t.Fatalf("Third element is not /a/file/here") t.Fatal("Third element is not /a/file/here")
} }
if di[3] != "lastfile" { if di[3] != "lastfile" {
t.Fatalf("Fourth element is not lastfile") t.Fatal("Fourth element is not lastfile")
} }
} }