diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-30 09:47:47 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-30 09:47:47 -0400 |
commit | 8a5ab6a56fcf428bded859c2325d7ef998fa116b (patch) | |
tree | b4c622a55c10942d61bc0673509d5192aa83d886 /api/command_test.go | |
parent | 13ebb5fe94bfee4e529f634f02d285fa7d8c0dfc (diff) | |
download | chat-8a5ab6a56fcf428bded859c2325d7ef998fa116b.tar.gz chat-8a5ab6a56fcf428bded859c2325d7ef998fa116b.tar.bz2 chat-8a5ab6a56fcf428bded859c2325d7ef998fa116b.zip |
Added slight delay to TestEchoCommand to account for race condition
Diffstat (limited to 'api/command_test.go')
-rw-r--r-- | api/command_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/command_test.go b/api/command_test.go index d70729448..360c4da58 100644 --- a/api/command_test.go +++ b/api/command_test.go @@ -6,6 +6,7 @@ package api import ( "strings" "testing" + "time" "github.com/mattermost/platform/model" "github.com/mattermost/platform/store" @@ -176,6 +177,8 @@ func TestEchoCommand(t *testing.T) { t.Fatal("Echo command failed to execute") } + time.Sleep(100 * time.Millisecond) + p1 := Client.Must(Client.GetPosts(channel1.Id, 0, 2, "")).Data.(*model.PostList) if len(p1.Order) != 1 { t.Fatal("Echo command failed to send") |