summaryrefslogtreecommitdiffstats
path: root/store/sql_channel_store_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-07-06 10:11:21 -0800
committerChristopher Speller <crspeller@gmail.com>2016-07-06 14:11:21 -0400
commitb1520d0b9458d1dab09d9e3e05dd7522fc28ba57 (patch)
tree6500ca9d516ddf456eaf4edfe4b27617a7490bf8 /store/sql_channel_store_test.go
parent26c91e73fef89b1d4a0ef04ef39589243d411752 (diff)
downloadchat-b1520d0b9458d1dab09d9e3e05dd7522fc28ba57.tar.gz
chat-b1520d0b9458d1dab09d9e3e05dd7522fc28ba57.tar.bz2
chat-b1520d0b9458d1dab09d9e3e05dd7522fc28ba57.zip
PLT-3512 adding join/leave channel to the CLI (#3498)
* PLT-3512 adding join/leave channel to the CLI * PLT-3512 adding list channels to the CLI * PLT-3512 adding restore channel * Adding make run-cli command * Updating txt * Fixing txt purposed by PMs
Diffstat (limited to 'store/sql_channel_store_test.go')
-rw-r--r--store/sql_channel_store_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/store/sql_channel_store_test.go b/store/sql_channel_store_test.go
index 2b284d06e..0c293972c 100644
--- a/store/sql_channel_store_test.go
+++ b/store/sql_channel_store_test.go
@@ -200,6 +200,15 @@ func TestChannelStoreGet(t *testing.T) {
t.Fatal("invalid returned channel")
}
}
+
+ if r3 := <-store.Channel().GetAll(o1.TeamId); r3.Err != nil {
+ t.Fatal(r3.Err)
+ } else {
+ channels := r3.Data.([]*model.Channel)
+ if len(channels) == 0 {
+ t.Fatal("too little")
+ }
+ }
}
func TestChannelStoreDelete(t *testing.T) {