From aae68a2d073958c281cb47d556208685b630f3ce Mon Sep 17 00:00:00 2001 From: Cnly Date: Tue, 23 Jul 2019 00:28:46 +0800 Subject: [PATCH] Fix linting and testfile --- clientapi/auth/storage/accounts/filter_table.go | 2 +- testfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clientapi/auth/storage/accounts/filter_table.go b/clientapi/auth/storage/accounts/filter_table.go index d8f258f96..2b07ef17e 100644 --- a/clientapi/auth/storage/accounts/filter_table.go +++ b/clientapi/auth/storage/accounts/filter_table.go @@ -93,7 +93,7 @@ func (s *filterStatements) insertFilter( ) (filterID string, err error) { var existingFilterID string - // Serialize json + // Serialise json filterJSON, err := json.Marshal(filter) if err != nil { return "", err diff --git a/testfile b/testfile index 1b2ad9e69..edd55c830 100644 --- a/testfile +++ b/testfile @@ -151,3 +151,5 @@ Inbound federation of state requires event_id as a mandatory paramater Inbound federation of state_ids requires event_id as a mandatory paramater POST /register returns the same device_id as that in the request POST /login returns the same device_id as that in the request +Lazy loading parameters in the filter are strictly boolean +Check creating invalid filters returns 4xx