GetTestProfileWithExternalPg will return a profile for testing with external Postgres. We require port as an argument of GetTestProfile so that test can run in parallel in different ports, pgURL for connect to Postgres.
(port int, pgURL string)
| 247 | // We require port as an argument of GetTestProfile so that test can run in parallel in different ports, |
| 248 | // pgURL for connect to Postgres. |
| 249 | func getTestProfileWithExternalPg(port int, pgURL string) *component.Profile { |
| 250 | return &component.Profile{ |
| 251 | Mode: common.ReleaseModeDev, |
| 252 | ExternalURL: fmt.Sprintf("http://localhost:%d", port), |
| 253 | Port: port, |
| 254 | PgURL: pgURL, |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | // start only called by StartServer() and StartServerWithExternalPg(). |
| 259 | func (ctl *controller) start(ctx context.Context, port int) (context.Context, error) { |
no outgoing calls
no test coverage detected