diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-07-21 10:00:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-21 10:00:09 -0400 |
commit | bfa04c0ab0eca5d812ad64e5f51e95ec458cf0d3 (patch) | |
tree | 6a51f8d4d144a181192499f5fd60ef82700e9abb /store/sql_status_store_test.go | |
parent | f0e9ec2dd127ffe34472c617f978173a8bf60b7c (diff) | |
download | chat-bfa04c0ab0eca5d812ad64e5f51e95ec458cf0d3.tar.gz chat-bfa04c0ab0eca5d812ad64e5f51e95ec458cf0d3.tar.bz2 chat-bfa04c0ab0eca5d812ad64e5f51e95ec458cf0d3.zip |
PLT-2408 Adds here mention for online users (#3619)
* Added @here mention that notifies online users
* Fixed existing race condition that would sometime cause clients to miss mention count changes
* Added missing localization strings
* Prevent @here from mentioning the user who posted it
Diffstat (limited to 'store/sql_status_store_test.go')
-rw-r--r-- | store/sql_status_store_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/store/sql_status_store_test.go b/store/sql_status_store_test.go index e16dc14d0..139915bad 100644 --- a/store/sql_status_store_test.go +++ b/store/sql_status_store_test.go @@ -48,6 +48,17 @@ func TestSqlStatusStore(t *testing.T) { } } + if result := <-store.Status().GetOnline(); result.Err != nil { + t.Fatal(result.Err) + } else { + statuses := result.Data.([]*model.Status) + for _, status := range statuses { + if status.Status != model.STATUS_ONLINE { + t.Fatal("should not have returned offline statuses") + } + } + } + if err := (<-store.Status().ResetAll()).Err; err != nil { t.Fatal(err) } |