diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-21 19:21:05 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-21 19:23:00 -0400 |
commit | b821d23ed71c89b14aa294debcf390057de27b37 (patch) | |
tree | 10b0da76d799d952f32d058550fa5cfb5fda7422 /api/post_test.go | |
parent | 39abf24708870cec71a84c01063e647b859b2b67 (diff) | |
download | chat-b821d23ed71c89b14aa294debcf390057de27b37.tar.gz chat-b821d23ed71c89b14aa294debcf390057de27b37.tar.bz2 chat-b821d23ed71c89b14aa294debcf390057de27b37.zip |
fixed unit tests to work with team domain changes and update partial url regex for files
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 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) |