Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(state): change migrations back to migration library #172

Merged
merged 7 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add the migrations path back to tests
  • Loading branch information
bozerkins committed Aug 16, 2023
commit 618739a1ce4badf67dbbf2e640e589cce841e869
13 changes: 7 additions & 6 deletions cmd/argo-watcher/state/postgres_state_test.go
Original file line number Diff line number Diff line change
@@ -60,12 +60,13 @@ var (

func TestPostgresState_Add(t *testing.T) {
config := &config.ServerConfig{
StateType: "postgres",
DbHost: os.Getenv("DB_HOST"),
DbPort: "5432",
DbUser: os.Getenv("DB_USER"),
DbName: os.Getenv("DB_NAME"),
DbPassword: os.Getenv("DB_PASSWORD"),
StateType: "postgres",
DbHost: os.Getenv("DB_HOST"),
DbPort: "5432",
DbUser: os.Getenv("DB_USER"),
DbName: os.Getenv("DB_NAME"),
DbPassword: os.Getenv("DB_PASSWORD"),
DbMigrationsPath: "../../../db/migrations",
}
err := postgresState.Connect(config)
if err != nil {