From 78a9774147c91407be3fb925b52336174854e632 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 23 Oct 2017 09:40:35 -0700 Subject: add model.NewX funcs for builtin types (#7692) * add model.NewX funcs for builtin types * whoops, forgot to add the new file --- api/post_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api') 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"} -- cgit v1.2.3-1-g7c22