[MM-14890] Logs endpoint always returns an empty line (#10559)
* fixed new line being returned in logs, improved the test * improved the EOL check * Fixed var shadowning
Этот коммит содержится в:
коммит произвёл
Miguel de la Cruz
родитель
84a59ddb39
Коммит
6cc36ab176
@@ -198,6 +198,9 @@ func TestGetLogs(t *testing.T) {
|
||||
t.Log(len(logs))
|
||||
t.Fatal("wrong length")
|
||||
}
|
||||
for i := 10; i < 20; i++ {
|
||||
assert.Containsf(t, logs[i-10], fmt.Sprintf(`"msg":"%d"`, i), "Log line doesn't contain correct message")
|
||||
}
|
||||
|
||||
logs, resp = th.SystemAdminClient.GetLogs(1, 10)
|
||||
CheckNoError(t, resp)
|
||||
|
||||
Ссылка в новой задаче
Block a user