diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-16 08:09:43 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-16 11:09:43 -0400 |
commit | 34285d8cca93fc0f473636e78680fade03f26bda (patch) | |
tree | b8274ed8d17e5dc63ac36aadac7e7299635d2b43 /api/file_test.go | |
parent | adb2b1d6eddabea803af8fa6cf53a75c98694427 (diff) | |
download | chat-34285d8cca93fc0f473636e78680fade03f26bda.tar.gz chat-34285d8cca93fc0f473636e78680fade03f26bda.tar.bz2 chat-34285d8cca93fc0f473636e78680fade03f26bda.zip |
parallel tests (#7629)
Diffstat (limited to 'api/file_test.go')
-rw-r--r-- | api/file_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/api/file_test.go b/api/file_test.go index 405e3e7d1..2935f0804 100644 --- a/api/file_test.go +++ b/api/file_test.go @@ -516,10 +516,7 @@ func TestGetPublicFileOld(t *testing.T) { store.Must(th.App.Srv.Store.FileInfo().AttachToPost(fileId, th.BasicPost.Id)) // reconstruct old style of link - siteURL := *utils.Cfg.ServiceSettings.SiteURL - if siteURL == "" { - siteURL = "http://localhost" + *utils.Cfg.ServiceSettings.ListenAddress - } + siteURL := fmt.Sprintf("http://localhost:%v", th.App.Srv.ListenAddr.Port) link := generatePublicLinkOld(siteURL, th.BasicTeam.Id, channel.Id, th.BasicUser.Id, fileId+"/test.png") // Wait a bit for files to ready |