From b821d23ed71c89b14aa294debcf390057de27b37 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 21 Jul 2015 19:21:05 -0400 Subject: fixed unit tests to work with team domain changes and update partial url regex for files --- api/post_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/post_test.go') 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) -- cgit v1.2.3-1-g7c22