PLT-6896 per-paging for logs (#7903)
* PLT-6896 Read logs from last * Getting rid of file.Stats * remove deprecated value * Make non-reassigned value constant
Этот коммит содержится в:
коммит произвёл
Chris
родитель
c39788b64b
Коммит
ddd99f7476
@@ -308,18 +308,18 @@ func TestGetLogs(t *testing.T) {
|
||||
logs, resp := th.SystemAdminClient.GetLogs(0, 10)
|
||||
CheckNoError(t, resp)
|
||||
|
||||
// if len(logs) != 10 {
|
||||
// t.Log(len(logs))
|
||||
// t.Fatal("wrong length")
|
||||
// }
|
||||
if len(logs) != 10 {
|
||||
t.Log(len(logs))
|
||||
t.Fatal("wrong length")
|
||||
}
|
||||
|
||||
logs, resp = th.SystemAdminClient.GetLogs(1, 10)
|
||||
CheckNoError(t, resp)
|
||||
|
||||
// if len(logs) != 10 {
|
||||
// t.Log(len(logs))
|
||||
// t.Fatal("wrong length")
|
||||
// }
|
||||
if len(logs) != 10 {
|
||||
t.Log(len(logs))
|
||||
t.Fatal("wrong length")
|
||||
}
|
||||
|
||||
logs, resp = th.SystemAdminClient.GetLogs(-1, -1)
|
||||
CheckNoError(t, resp)
|
||||
|
||||
Ссылка в новой задаче
Block a user