fixing unit test
Этот коммит содержится в:
@@ -6,6 +6,7 @@ package store
|
|||||||
import (
|
import (
|
||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/platform/model"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestChannelStoreSave(t *testing.T) {
|
func TestChannelStoreSave(t *testing.T) {
|
||||||
@@ -60,6 +61,8 @@ func TestChannelStoreUpdate(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
|
||||||
if err := (<-store.Channel().Update(&o1)).Err; err != nil {
|
if err := (<-store.Channel().Update(&o1)).Err; err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user