Skip to content

Commit

Permalink
fix (executor:dbFixtures): join workdir path with migration folder to…
Browse files Browse the repository at this point in the history
…o in DBFixtures executor. (#158)
  • Loading branch information
wI2L authored and yesnault committed Jun 25, 2018
1 parent 62dcc5d commit 0e6718a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executors/dbfixtures/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ func (e Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, ste
} else if e.Migrations != "" {
l.Debugf("loading migrations from folder %s\n", e.Migrations)

dir := path.Join(workdir, e.Migrations)
migrations := &migrate.FileMigrationSource{
Dir: e.Migrations,
Dir: dir,
}
n, errMigrate := migrate.Exec(db, e.Database, migrations, migrate.Up)
if errMigrate != nil {
Expand Down

0 comments on commit 0e6718a

Please sign in to comment.