mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Build using native OS workers (#231)
This commit is contained in:
parent
06d8bb7567
commit
f69f1dea03
7 changed files with 123 additions and 96 deletions
|
|
@ -179,10 +179,8 @@ func TestMySQLDumpSchema(t *testing.T) {
|
|||
drv.databaseURL.Path = "/fakedb"
|
||||
schema, err = drv.DumpSchema(db)
|
||||
require.Nil(t, schema)
|
||||
require.EqualError(t, err, "mysqldump: [Warning] Using a password "+
|
||||
"on the command line interface can be insecure.\n"+
|
||||
"mysqldump: Got error: 1049: "+
|
||||
"Unknown database 'fakedb' when selecting the database")
|
||||
require.Error(t, err)
|
||||
require.Contains(t, err.Error(), "Unknown database 'fakedb'")
|
||||
}
|
||||
|
||||
func TestMySQLDatabaseExists(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -186,8 +186,8 @@ func TestPostgresDumpSchema(t *testing.T) {
|
|||
drv.databaseURL.Path = "/fakedb"
|
||||
schema, err = drv.DumpSchema(db)
|
||||
require.Nil(t, schema)
|
||||
require.EqualError(t, err, "pg_dump: [archiver (db)] connection to database "+
|
||||
"\"fakedb\" failed: FATAL: database \"fakedb\" does not exist")
|
||||
require.Error(t, err)
|
||||
require.Contains(t, err.Error(), "database \"fakedb\" does not exist")
|
||||
})
|
||||
|
||||
t.Run("custom migrations table with schema", func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue