From 5c19d9be7f20d4528331a0f9f6673d20bf16d57a Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Tue, 21 Feb 2017 21:07:57 +0900 Subject: Implement endpoint for APIv4: GET /users/{user_id}/audits (#5472) --- store/sql_audit_store_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'store/sql_audit_store_test.go') diff --git a/store/sql_audit_store_test.go b/store/sql_audit_store_test.go index 841b79627..fcdada4e5 100644 --- a/store/sql_audit_store_test.go +++ b/store/sql_audit_store_test.go @@ -4,9 +4,10 @@ package store import ( - "github.com/mattermost/platform/model" "testing" "time" + + "github.com/mattermost/platform/model" ) func TestSqlAuditStore(t *testing.T) { @@ -25,7 +26,7 @@ func TestSqlAuditStore(t *testing.T) { time.Sleep(100 * time.Millisecond) - c := store.Audit().Get(audit.UserId, 100) + c := store.Audit().Get(audit.UserId, 0, 100) result := <-c audits := result.Data.(model.Audits) @@ -37,7 +38,7 @@ func TestSqlAuditStore(t *testing.T) { t.Fatal("Failed to save property for extra info") } - c = store.Audit().Get("missing", 100) + c = store.Audit().Get("missing", 0, 100) result = <-c audits = result.Data.(model.Audits) @@ -45,7 +46,7 @@ func TestSqlAuditStore(t *testing.T) { t.Fatal("Should have returned empty because user_id is missing") } - c = store.Audit().Get("", 100) + c = store.Audit().Get("", 0, 100) result = <-c audits = result.Data.(model.Audits) -- cgit v1.2.3-1-g7c22