Skip to content

Commit

Permalink
Fix interface
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Dec 23, 2024
1 parent 2199a4a commit 0d24d2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_internals/testcontainers_ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ func WithEnvironment(name string, value string) *EnvCustomizer {
}
}

func (c *EnvCustomizer) Customize(req *testcontainers.GenericContainerRequest) {
func (c *EnvCustomizer) Customize(req *testcontainers.GenericContainerRequest) error {
if req.Env == nil {
req.Env = make(map[string]string)
}
req.Env[c.varName] = c.varValue
return nil
}

0 comments on commit 0d24d2e

Please sign in to comment.