api: retry database connection if it fails
Closes https://gitlab.com/commento/commento-ce/issues/52
This commit is contained in:
@@ -68,7 +68,7 @@ func setupTestDatabase() error {
|
||||
os.Setenv("POSTGRES", "postgres://postgres:postgres@localhost/commento_test?sslmode=disable")
|
||||
}
|
||||
|
||||
if err := connectDB(); err != nil {
|
||||
if err := connectDB(0); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user