diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-25 09:11:25 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-09-25 10:11:25 -0400 |
commit | 49fe5fbf3db56fc466b8997b182ee135d7a4365d (patch) | |
tree | 1252fea09aa3ce899e2e8edb1fb7b42900f50bca /api4/channel_test.go | |
parent | b2c5b97601b61f5748b46e4e386134203111ebb0 (diff) | |
download | chat-49fe5fbf3db56fc466b8997b182ee135d7a4365d.tar.gz chat-49fe5fbf3db56fc466b8997b182ee135d7a4365d.tar.bz2 chat-49fe5fbf3db56fc466b8997b182ee135d7a4365d.zip |
Move sql store code into store/sqlstore package (#7502)
* move sql store code into store/sqlstore package
* move non-sql constants back up to store
* fix api test
* derp
Diffstat (limited to 'api4/channel_test.go')
-rw-r--r-- | api4/channel_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api4/channel_test.go b/api4/channel_test.go index 7237eb47a..fbe96728d 100644 --- a/api4/channel_test.go +++ b/api4/channel_test.go @@ -12,7 +12,7 @@ import ( "testing" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/store" + "github.com/mattermost/mattermost-server/store/sqlstore" "github.com/mattermost/mattermost-server/utils" ) @@ -936,7 +936,7 @@ func TestDeleteChannel(t *testing.T) { // successful delete by channel admin MakeUserChannelAdmin(user, publicChannel6) MakeUserChannelAdmin(user, privateChannel7) - store.ClearChannelCaches() + sqlstore.ClearChannelCaches() _, resp = Client.DeleteChannel(publicChannel6.Id) CheckNoError(t, resp) @@ -990,7 +990,7 @@ func TestDeleteChannel(t *testing.T) { // // cannot delete by channel admin MakeUserChannelAdmin(user, publicChannel6) MakeUserChannelAdmin(user, privateChannel7) - store.ClearChannelCaches() + sqlstore.ClearChannelCaches() _, resp = Client.DeleteChannel(publicChannel6.Id) CheckForbiddenStatus(t, resp) @@ -1032,7 +1032,7 @@ func TestDeleteChannel(t *testing.T) { // cannot delete by channel admin MakeUserChannelAdmin(user, publicChannel6) MakeUserChannelAdmin(user, privateChannel7) - store.ClearChannelCaches() + sqlstore.ClearChannelCaches() _, resp = Client.DeleteChannel(publicChannel6.Id) CheckForbiddenStatus(t, resp) |