summaryrefslogtreecommitdiffstats
path: root/api/post_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-07-21 15:46:12 -0800
committerCorey Hulen <corey@hulen.com>2015-07-21 15:46:12 -0800
commit269185fb0e252e8105d5f143ca104a069ec10c47 (patch)
tree37eb1f616abcd5a923d8c730b9f7a6d1b5b56f2d /api/post_test.go
parent06bac01e882a7b05519d0e39bccafacd0c27c602 (diff)
parent237920e314f3974880d9913aff69faafbe094107 (diff)
downloadchat-269185fb0e252e8105d5f143ca104a069ec10c47.tar.gz
chat-269185fb0e252e8105d5f143ca104a069ec10c47.tar.bz2
chat-269185fb0e252e8105d5f143ca104a069ec10c47.zip
Merge pull request #205 from mattermost/mm-1351
fixes mm-1351 adds local server storage
Diffstat (limited to 'api/post_test.go')
-rw-r--r--api/post_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post_test.go b/api/post_test.go
index 0cccc74d3..19a88f737 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"}
+ filenames := []string{"/12345678901234567890123456/12345678901234567890123456/12345678901234567890123456/test.png", "/" + channel1.Id + "/" + user1.Id + "/test.png", "www.mattermost.com/fake/url", "junk"}
post1 := &model.Post{ChannelId: channel1.Id, Message: "#hashtag a" + model.NewId() + "a", Filenames: filenames}
rpost1, err := Client.CreatePost(post1)