This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-09-06 13:13:48 +03:00
parent 26f515775b
commit 618afd97f7
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7

View File

@ -30,7 +30,7 @@ func TestJSONLogger(t *testing.T) {
app.Get("/ping", ping)
const expectedLogStr = `{"level":"debug","message":"Request path: /ping","fields":{"request_id":null},"stacktrace":[{"function":"json-logger/ping","source":"C:/mygopath/src/github.com/kataras/iris/_examples/logging/json-logger/main.go:85"}]}`
const expectedLogStr = `{"level":"debug","message":"Request path: /ping","fields":{"request_id":null},"stacktrace":[{"function":"json-logger/ping","source":"C:/mygopath/src/github.com/kataras/iris/_examples/logging/json-logger/main.go:76"}]}`
e := httptest.New(t, app, httptest.LogLevel("debug"))
wg := new(sync.WaitGroup)
wg.Add(iters)