summaryrefslogtreecommitdiffstats
path: root/api/post_test.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-06-17 12:07:35 -0400
committerJoramWilander <jwawilander@gmail.com>2015-06-17 12:07:35 -0400
commit799215ee2278b162d4e113c498424fdda817e83b (patch)
treecff7f204fe24e9bcac2058823160031a575cdd80 /api/post_test.go
parent5a8f8397167cec8cba29b70bb7dbdda9ba0265f7 (diff)
downloadchat-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.go2
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 {