Skip to content

Commit

Permalink
Handle connection error case (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhide-tibco authored Jan 24, 2023
1 parent b51c9ad commit 0f32d7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app
import (
"encoding/json"
"fmt"
"os"
"path"
"regexp"
"runtime/debug"
Expand Down Expand Up @@ -145,7 +146,12 @@ func New(config *Config, runner action.Runner, options ...Option) (*App, error)
for id, config := range config.Connections {
_, err := connection.NewSharedManager(id, config)
if err != nil {
return nil, err
if os.Getenv("TEST_MODE") != "true" {
return nil, err
} else {
fmt.Printf("Failed to create connection with error %s. Engine execution will continue in test mode. If the connection is used in executing Test Case, the case will fail to execute. \n", err.Error())
err = nil
}
}
}

Expand Down

0 comments on commit 0f32d7a

Please sign in to comment.