diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-17 12:38:37 -0600 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-17 13:38:37 -0500 |
commit | 4e6cc846a618ecef5c101727bbd03f6674044ab7 (patch) | |
tree | 1fc093b4b338acf34180c93f30a32de50e17d089 /api4/post_test.go | |
parent | dce061630530c467966378ae3c5adbcf4a09e34f (diff) | |
download | chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.tar.gz chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.tar.bz2 chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.zip |
Finally remove utils.Cfg (#8113)
* finally remove utils.Cfg
* fix compile error
* another test compilation fix
Diffstat (limited to 'api4/post_test.go')
-rw-r--r-- | api4/post_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/post_test.go b/api4/post_test.go index e4fb7dd8b..6f770b70a 100644 --- a/api4/post_test.go +++ b/api4/post_test.go @@ -323,7 +323,7 @@ func TestCreatePostPublic(t *testing.T) { post := &model.Post{ChannelId: th.BasicChannel.Id, Message: "#hashtag a" + model.NewId() + "a"} - user := model.User{Email: GenerateTestEmail(), Nickname: "Joram Wilander", Password: "hello1", Username: GenerateTestUsername(), Roles: model.SYSTEM_USER_ROLE_ID} + user := model.User{Email: th.GenerateTestEmail(), Nickname: "Joram Wilander", Password: "hello1", Username: GenerateTestUsername(), Roles: model.SYSTEM_USER_ROLE_ID} ruser, resp := Client.CreateUser(&user) CheckNoError(t, resp) @@ -368,7 +368,7 @@ func TestCreatePostAll(t *testing.T) { post := &model.Post{ChannelId: th.BasicChannel.Id, Message: "#hashtag a" + model.NewId() + "a"} - user := model.User{Email: GenerateTestEmail(), Nickname: "Joram Wilander", Password: "hello1", Username: GenerateTestUsername(), Roles: model.SYSTEM_USER_ROLE_ID} + user := model.User{Email: th.GenerateTestEmail(), Nickname: "Joram Wilander", Password: "hello1", Username: GenerateTestUsername(), Roles: model.SYSTEM_USER_ROLE_ID} directChannel, _ := th.App.CreateDirectChannel(th.BasicUser.Id, th.BasicUser2.Id) |