mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixes for the /echo command (#4843)
This commit is contained in:
committed by
Christopher Speller
parent
1f67c91fce
commit
2da388d297
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user