Skip to content

Commit

Permalink
refactor: moved TestMigrator to ory/x/popx (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored May 9, 2020
1 parent 551be36 commit a0919a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 123 deletions.
4 changes: 3 additions & 1 deletion internal/httpclient/models/o_auth2_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/httpclient/models/plugin_config_rootfs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 0 additions & 120 deletions persistence/sql/migratest/helpers.go

This file was deleted.

4 changes: 3 additions & 1 deletion persistence/sql/migratest/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"fmt"
"testing"

"github.com/ory/x/popx"

"github.com/ory/hydra/driver/configuration"
"github.com/ory/viper"
"github.com/ory/x/sqlcon/dockertest"
Expand Down Expand Up @@ -63,7 +65,7 @@ func TestMigrations(t *testing.T) {
}),
)

tm := NewTestMigrator(t, c, "../migrations", "./testdata")
tm := popx.NewTestMigrator(t, c, "../migrations", "./testdata")
require.NoError(t, tm.Up())

var lastClient *client.Client
Expand Down

0 comments on commit a0919a5

Please sign in to comment.