diff options
author | Corey Hulen <corey@hulen.com> | 2017-06-20 13:13:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 13:13:02 -0700 |
commit | b5d2c12d225664af5387bcc628b37502ef74c205 (patch) | |
tree | 8bbb0c0c261cf44be7600a6301f2e7b6b367a507 /api4 | |
parent | 68ea0abfa665144164041c9421899bfc21412f8a (diff) | |
download | chat-b5d2c12d225664af5387bcc628b37502ef74c205.tar.gz chat-b5d2c12d225664af5387bcc628b37502ef74c205.tar.bz2 chat-b5d2c12d225664af5387bcc628b37502ef74c205.zip |
Setting per-paging for logs to load 10K initially like the old apis (#6697)
* Setting per-paging for logs to load 10K initially like the old apis
* Fixing unit test
Diffstat (limited to 'api4')
-rw-r--r-- | api4/system_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/api4/system_test.go b/api4/system_test.go index 435501e72..09afa0c1c 100644 --- a/api4/system_test.go +++ b/api4/system_test.go @@ -310,18 +310,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) |