diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-06-17 12:07:35 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-06-17 12:07:35 -0400 |
commit | 799215ee2278b162d4e113c498424fdda817e83b (patch) | |
tree | cff7f204fe24e9bcac2058823160031a575cdd80 /api/post_test.go | |
parent | 5a8f8397167cec8cba29b70bb7dbdda9ba0265f7 (diff) | |
download | chat-799215ee2278b162d4e113c498424fdda817e83b.tar.gz chat-799215ee2278b162d4e113c498424fdda817e83b.tar.bz2 chat-799215ee2278b162d4e113c498424fdda817e83b.zip |
move valet feature switch to DB from config
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 b322a5017..03f70bff7 100644 --- a/api/post_test.go +++ b/api/post_test.go @@ -147,7 +147,7 @@ func TestCreateValetPost(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) - if utils.Cfg.TeamSettings.AllowValet { + if utils.Cfg.TeamSettings.AllowValetDefault { post1 := &model.Post{ChannelId: channel1.Id, Message: "#hashtag a" + model.NewId() + "a"} rpost1, err := Client.CreateValetPost(post1) if err != nil { |