summaryrefslogtreecommitdiffstats
path: root/api/command_msg_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command_msg_test.go')
-rw-r--r--api/command_msg_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/command_msg_test.go b/api/command_msg_test.go
index 7ea93420a..07cce149c 100644
--- a/api/command_msg_test.go
+++ b/api/command_msg_test.go
@@ -12,12 +12,14 @@ import (
func TestMsgCommands(t *testing.T) {
th := Setup().InitBasic()
+ defer th.TearDown()
+
Client := th.BasicClient
team := th.BasicTeam
user1 := th.BasicUser
user2 := th.BasicUser2
user3 := th.CreateUser(th.BasicClient)
- LinkUserToTeam(user3, team)
+ th.LinkUserToTeam(user3, team)
Client.Must(Client.CreateDirectChannel(user2.Id))
Client.Must(Client.CreateDirectChannel(user3.Id))