fixing unit test

This commit is contained in:
=Corey Hulen
2015-07-05 10:09:47 -08:00
parent b968ef04a0
commit b0a917bbc7

View File

@@ -6,6 +6,7 @@ package store
import (
"github.com/mattermost/platform/model"
"testing"
"time"
)
func TestChannelStoreSave(t *testing.T) {
@@ -60,6 +61,8 @@ func TestChannelStoreUpdate(t *testing.T) {
t.Fatal(err)
}
time.Sleep(100 * time.Millisecond)
if err := (<-store.Channel().Update(&o1)).Err; err != nil {
t.Fatal(err)
}