mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-06 13:43:09 -06:00
Really SKIP_NODB
This commit is contained in:
parent
b3162755a9
commit
d7e79a7d02
|
|
@ -63,6 +63,9 @@ func createRemoteDB(t *testing.T, dbName, user, connStr string) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fatalError(t, "failed to open postgres conn with connstr=%s : %s", connStr, err)
|
fatalError(t, "failed to open postgres conn with connstr=%s : %s", connStr, err)
|
||||||
}
|
}
|
||||||
|
if err = db.Ping(); err != nil {
|
||||||
|
fatalError(t, "failed to open postgres conn with connstr=%s : %s", connStr, err)
|
||||||
|
}
|
||||||
_, err = db.Exec(fmt.Sprintf(`CREATE DATABASE %s;`, dbName))
|
_, err = db.Exec(fmt.Sprintf(`CREATE DATABASE %s;`, dbName))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
pqErr, ok := err.(*pq.Error)
|
pqErr, ok := err.(*pq.Error)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue