Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Aug 27, 2024
1 parent 5c2233f commit 4f243f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/setup/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/flanksource/duty/api"
"github.com/flanksource/duty/context"
"github.com/flanksource/duty/telemetry"
"github.com/spf13/pflag"

"github.com/flanksource/duty/job"
"github.com/flanksource/duty/models"
Expand All @@ -40,8 +41,10 @@ var postgresDBUrl string
var dbName = "test"

func init() {
logger.BindGoFlags()
duty.BindGoFlags()
logger.UseSlog()
logger.BindFlags(pflag.CommandLine)
duty.BindPFlags(pflag.CommandLine)
properties.BindFlags(pflag.CommandLine)
}

func execPostgres(connection, query string) error {
Expand Down

0 comments on commit 4f243f7

Please sign in to comment.