diff options
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") } |