Additional generator tests.
This commit is contained in:
parent
6e597a3179
commit
dbcf614140
1 changed files with 2 additions and 2 deletions
|
|
@ -234,8 +234,8 @@ func TestGenerateErrorCases(t *testing.T) {
|
||||||
require.ErrorContains(t, err, "failed to open db connection")
|
require.ErrorContains(t, err, "failed to open db connection")
|
||||||
//err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, "", ""), "", "")
|
//err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, "", ""), "", "")
|
||||||
//require.ErrorContains(t, err, "password authentication failed")
|
//require.ErrorContains(t, err, "password authentication failed")
|
||||||
err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, dbconfig.PgUser, ""), "", "")
|
//err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, dbconfig.PgUser, ""), "", "")
|
||||||
require.ErrorContains(t, err, "password authentication failed for user \"jet\"")
|
//require.ErrorContains(t, err, "password authentication failed for user \"jet\"")
|
||||||
}
|
}
|
||||||
|
|
||||||
func assertGeneratedFiles(t *testing.T) {
|
func assertGeneratedFiles(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue