diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-20 09:28:00 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-12-20 09:28:00 -0500 |
commit | 2da388d297385a0068042cac7cbd362300e7e965 (patch) | |
tree | 613df74fdc3c75c3f5fbc186eac4d38c61f980b1 /api/command_echo_test.go | |
parent | 1f67c91fcec746aeeb34b9c39b7df328d5f6a4a0 (diff) | |
download | chat-2da388d297385a0068042cac7cbd362300e7e965.tar.gz chat-2da388d297385a0068042cac7cbd362300e7e965.tar.bz2 chat-2da388d297385a0068042cac7cbd362300e7e965.zip |
Fixes for the /echo command (#4843)
Diffstat (limited to 'api/command_echo_test.go')
-rw-r--r-- | api/command_echo_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/api/command_echo_test.go b/api/command_echo_test.go index 71a378242..02583d2aa 100644 --- a/api/command_echo_test.go +++ b/api/command_echo_test.go @@ -17,8 +17,11 @@ func TestEchoCommand(t *testing.T) { echoTestString := "/echo test" - r1 := Client.Must(Client.Command(channel1.Id, echoTestString)).Data.(*model.CommandResponse) - if r1 == nil { + if r1 := Client.Must(Client.Command(channel1.Id, echoTestString)).Data.(*model.CommandResponse); r1 == nil { + t.Fatal("Echo command failed to execute") + } + + if r1 := Client.Must(Client.Command(channel1.Id, "/echo ")).Data.(*model.CommandResponse); r1 == nil { t.Fatal("Echo command failed to execute") } |