Этот коммит содержится в:
=Corey Hulen
2016-01-22 16:42:38 -06:00
родитель c2d98c2c1f
Коммит 6b534f1b0d
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@@ -190,8 +190,9 @@ func TestLoadTestUrlCommands(t *testing.T) {
t.Fatal("/loadtest url with no url should've failed")
}
command = "/loadtest url http://www.hopefullynonexistent.file/path/asdf/qwerty"
command = "/loadtest url http://missingfiletonwhere/path/asdf/qwerty"
if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Unable to get file" {
t.Log(r.Text)
t.Fatal("/loadtest url with invalid url should've failed")
}