diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-04-11 08:49:03 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-04-11 08:49:03 -0400 |
commit | 81e7e853697263f25ca505cc9b2cd50c6e2fe739 (patch) | |
tree | bfbab68361ccb336886745799e9d7c79e108ba6e | |
parent | a74e5405efdd9e5108cd9ee7c939bcf87d29991e (diff) | |
download | chat-81e7e853697263f25ca505cc9b2cd50c6e2fe739.tar.gz chat-81e7e853697263f25ca505cc9b2cd50c6e2fe739.tar.bz2 chat-81e7e853697263f25ca505cc9b2cd50c6e2fe739.zip |
Fixing build
-rw-r--r-- | api/file_test.go | 5 |
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) |