diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-16 09:55:50 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-16 09:55:50 -0400 |
commit | 5832f10bb98549aa4b9e8cd8b100d3972eadb78c (patch) | |
tree | 13cc9aac85e50d84a6bbc92f493bcd6383ff5cf3 /api | |
parent | 89716cb046ee3c8f13b361053d91149f5ce29cbf (diff) | |
download | chat-5832f10bb98549aa4b9e8cd8b100d3972eadb78c.tar.gz chat-5832f10bb98549aa4b9e8cd8b100d3972eadb78c.tar.bz2 chat-5832f10bb98549aa4b9e8cd8b100d3972eadb78c.zip |
Fixed preference test that was failing
Diffstat (limited to 'api')
-rw-r--r-- | api/preference_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/preference_test.go b/api/preference_test.go index 9d3db9e2f..eaa92fe47 100644 --- a/api/preference_test.go +++ b/api/preference_test.go @@ -60,9 +60,10 @@ func TestGetAllPreferences(t *testing.T) { Client.LoginByEmail(team.Name, user2.Email, "pwd") + // note that user2 will automatically have a preference set for them to show user1 for direct messages if result, err := Client.GetAllPreferences(); err != nil { t.Fatal(err) - } else if data := result.Data.(model.Preferences); len(data) != 0 { + } else if data := result.Data.(model.Preferences); len(data) != 1 { t.Fatal("received the wrong number of preferences") } } |