Unskip tests (#516)

* Unskip tests

* fix fn output for errors

* Change Error model and add fn routes call return on error
This commit is contained in:
Seif Lotfy سيف لطفي
2017-02-10 01:31:39 +01:00
committed by Pedro Nasser
parent 6214f1711a
commit ab9428a937
5 changed files with 38 additions and 21 deletions

View File

@@ -66,7 +66,6 @@ func TestRunnerHello(t *testing.T) {
}
func TestRunnerError(t *testing.T) {
t.Skip()
buf := setLogBuffer()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
@@ -83,8 +82,8 @@ func TestRunnerError(t *testing.T) {
expectedOut string
expectedErr string
}{
{&models.Route{Image: "iron/error"}, ``, "error", "", "RuntimeError"},
{&models.Route{Image: "iron/error"}, `{"name": "test"}`, "error", "", "RuntimeError"},
{&models.Route{Image: "iron/error"}, ``, "error", "", ""},
{&models.Route{Image: "iron/error"}, `{"name": "test"}`, "error", "", ""},
} {
var stdout, stderr bytes.Buffer
cfg := &task.Config{