1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-12 08:00:42 +03:00
parent 9ed566b076
commit 22e25c3586
2 changed files with 7 additions and 1 deletions

View File

@@ -50,6 +50,10 @@ func TestJSONLogger(t *testing.T) {
got := out.String()
got = got[strings.Index(got, "{"):] // take only the json we care and after.
if expected != got {
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
if !strings.HasSuffix(got, expected) {
// C:/mygopath vs /home/travis vs any file system,
// pure check but it does the job.
t.Fatalf("expected:\n%s\nbut got:\n%s", expected, got)
}
}
}