summaryrefslogtreecommitdiffstats
path: root/api/file_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-04-11 08:49:03 -0400
committerChristopher Speller <crspeller@gmail.com>2016-04-11 08:49:03 -0400
commit81e7e853697263f25ca505cc9b2cd50c6e2fe739 (patch)
treebfbab68361ccb336886745799e9d7c79e108ba6e /api/file_test.go
parenta74e5405efdd9e5108cd9ee7c939bcf87d29991e (diff)
downloadchat-81e7e853697263f25ca505cc9b2cd50c6e2fe739.tar.gz
chat-81e7e853697263f25ca505cc9b2cd50c6e2fe739.tar.bz2
chat-81e7e853697263f25ca505cc9b2cd50c6e2fe739.zip
Fixing build
Diffstat (limited to 'api/file_test.go')
-rw-r--r--api/file_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/file_test.go b/api/file_test.go
index 4a3eaebfb..3aa1a56f9 100644
--- a/api/file_test.go
+++ b/api/file_test.go
@@ -138,6 +138,11 @@ func TestUploadFile(t *testing.T) {
func TestGetFile(t *testing.T) {
Setup()
+ enablePublicLink := utils.Cfg.FileSettings.EnablePublicLink
+ defer func() {
+ utils.Cfg.FileSettings.EnablePublicLink = enablePublicLink
+ }()
+ utils.Cfg.FileSettings.EnablePublicLink = true
team := &model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN}
team = Client.Must(Client.CreateTeam(team)).Data.(*model.Team)