diff options
Diffstat (limited to 'api/post_test.go')
-rw-r--r-- | api/post_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/post_test.go b/api/post_test.go index 342bd03ae..138b3dcb9 100644 --- a/api/post_test.go +++ b/api/post_test.go @@ -307,8 +307,7 @@ func testCreatePostWithOutgoingHook( } resp := &model.OutgoingWebhookResponse{} - resp.Text = new(string) - *resp.Text = "some test text" + resp.Text = model.NewString("some test text") resp.Username = "testusername" resp.IconURL = "http://www.mattermost.org/wp-content/uploads/2016/04/icon.png" resp.Props = map[string]interface{}{"someprop": "somevalue"} |