Return the error on failed specializations with fn test --debug (#917)

This commit is contained in:
smruthi2187
2018-10-19 11:17:58 -07:00
committed by GitHub
parent 5aeba59b75
commit dd35750482
10 changed files with 47 additions and 7 deletions
+6 -1
View File
@@ -124,12 +124,17 @@ func Start(port int, executorUrl string) {
log.Fatalf("Failed to parse max retry times: %v", err)
}
isDebugEnv, err := strconv.ParseBool(os.Getenv("DEBUG_ENV"))
if err != nil {
log.Fatalf("Failed to parse DEBUG_ENV: %v", err)
}
triggers, _, fnStore := makeHTTPTriggerSet(fmap, frmap, trmap, fissionClient, kubeClient, executor, restClient, &tsRoundTripperParams{
timeout: timeout,
timeoutExponent: timeoutExponent,
keepAlive: keepAlive,
maxRetries: maxRetries,
})
}, isDebugEnv)
resolver := makeFunctionReferenceResolver(fnStore)