fixing unit test

This commit is contained in:
=Corey Hulen
2015-07-05 10:04:01 -08:00
parent e01aea7825
commit b968ef04a0
2 changed files with 7 additions and 2 deletions

View File

@@ -55,7 +55,10 @@ func TestChannelStoreUpdate(t *testing.T) {
o1.DisplayName = "Name"
o1.Name = "a" + model.NewId() + "b"
o1.Type = model.CHANNEL_OPEN
<-store.Channel().Save(&o1)
if err := (<-store.Channel().Save(&o1)).Err; err != nil {
t.Fatal(err)
}
if err := (<-store.Channel().Update(&o1)).Err; err != nil {
t.Fatal(err)