diff options
author | Yusuke Nemoto <kaakaa@users.noreply.github.com> | 2017-12-14 04:04:55 +0900 |
---|---|---|
committer | Chris <ccbrown112@gmail.com> | 2017-12-13 13:04:55 -0600 |
commit | ddd99f747663ff6f2a5446ab7fc92490ea90ddef (patch) | |
tree | a30dff3ef2ecde4fd516b743e2ac1312c9a3b277 /api4/system_test.go | |
parent | c39788b64b2d2c1f61968da234cac47c21e1affb (diff) | |
download | chat-ddd99f747663ff6f2a5446ab7fc92490ea90ddef.tar.gz chat-ddd99f747663ff6f2a5446ab7fc92490ea90ddef.tar.bz2 chat-ddd99f747663ff6f2a5446ab7fc92490ea90ddef.zip |
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
Diffstat (limited to 'api4/system_test.go')
-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 3afcf633c..1b2bb5d99 100644 --- a/api4/system_test.go +++ b/api4/system_test.go @@ -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) |