mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
committed by
Pedro Nasser
parent
6214f1711a
commit
ab9428a937
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user