Skip to content

Commit

Permalink
[TT-1259] postgresdb logstrem functional option (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Jun 7, 2024
1 parent 404d898 commit 71ff056
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/test_env/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

"github.com/smartcontractkit/chainlink-testing-framework/docker"
"github.com/smartcontractkit/chainlink-testing-framework/logging"
"github.com/smartcontractkit/chainlink-testing-framework/logstream"
"github.com/smartcontractkit/chainlink-testing-framework/mirror"
"github.com/smartcontractkit/chainlink-testing-framework/utils/testcontext"
)
Expand Down Expand Up @@ -56,6 +57,12 @@ func WithPostgresImageName(imageName string) PostgresDbOption {
}
}

func WithPostgresDbLogStream(ls *logstream.LogStream) PostgresDbOption {
return func(c *PostgresDb) {
c.LogStream = ls
}
}

func WithPostgresImageVersion(version string) PostgresDbOption {
return func(c *PostgresDb) {
if version != "" {
Expand Down

0 comments on commit 71ff056

Please sign in to comment.