Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander committed Feb 7, 2017
1 parent cc88070 commit 7ad1350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions store/sql_channel_store_test.go
Expand Up @@ -79,8 +79,8 @@ func TestChannelStoreSaveDirectChannel(t *testing.T) {
t.Fatal("couldn't save direct channel", err)
}

members := (<-store.Channel().GetMembers(o1.Id)).Data.([]model.ChannelMember)
if len(members) != 2 {
members := (<-store.Channel().GetMembers(o1.Id, 0, 100)).Data.(*model.ChannelMembers)
if len(*members) != 2 {
t.Fatal("should have saved 2 members")
}

Expand Down Expand Up @@ -135,8 +135,8 @@ func TestChannelStoreCreateDirectChannel(t *testing.T) {

c1 := res.Data.(*model.Channel)

members := (<-store.Channel().GetMembers(c1.Id)).Data.([]model.ChannelMember)
if len(members) != 2 {
members := (<-store.Channel().GetMembers(c1.Id, 0, 100)).Data.(*model.ChannelMembers)
if len(*members) != 2 {
t.Fatal("should have saved 2 members")
}
}
Expand Down

0 comments on commit 7ad1350

Please sign in to comment.