diff options
author | Corey Hulen <corey@hulen.com> | 2015-07-21 14:21:53 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-07-21 14:21:53 -0800 |
commit | 26010e2690c251ef1424d7ad4037efbff5ac8901 (patch) | |
tree | 5f03802e4beca63ae3b175bab20e50e3afd2d956 /api/post_test.go | |
parent | 384223a3e7fe6350e6087849fcc1f75923cc80c9 (diff) | |
parent | 73ee387319d59dca073e4cd0c1b9b60b392b137d (diff) | |
download | chat-26010e2690c251ef1424d7ad4037efbff5ac8901.tar.gz chat-26010e2690c251ef1424d7ad4037efbff5ac8901.tar.bz2 chat-26010e2690c251ef1424d7ad4037efbff5ac8901.zip |
Merge pull request #225 from mattermost/files-patch
Fixing issues with files trasitioning to relative paths
Diffstat (limited to 'api/post_test.go')
-rw-r--r-- | api/post_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post_test.go b/api/post_test.go index 3249ed7fa..0cccc74d3 100644 --- a/api/post_test.go +++ b/api/post_test.go @@ -37,7 +37,7 @@ func TestCreatePost(t *testing.T) { channel2 := &model.Channel{DisplayName: "Test API Name", Name: "a" + model.NewId() + "a", Type: model.CHANNEL_OPEN, TeamId: team.Id} channel2 = Client.Must(Client.CreateChannel(channel2)).Data.(*model.Channel) - filenames := []string{"/api/v1/files/get/12345678901234567890123456/12345678901234567890123456/test.png", "/api/v1/files/get/" + channel1.Id + "/" + user1.Id + "/test.png", "www.mattermost.com/fake/url", "junk"} + filenames := []string{"/api/v1/files/get/12345678901234567890123456/12345678901234567890123456/test.png", "/api/v1/files/get/" + channel1.Id + "/" + user1.Id + "/test.png"} post1 := &model.Post{ChannelId: channel1.Id, Message: "#hashtag a" + model.NewId() + "a", Filenames: filenames} rpost1, err := Client.CreatePost(post1) |