From 0d24d2e719be1cb724adde32a9b407c41ab8caac Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 23 Dec 2024 12:31:26 -0700 Subject: [PATCH] Fix interface --- test/test_internals/testcontainers_ext.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_internals/testcontainers_ext.go b/test/test_internals/testcontainers_ext.go index f32ea2f3..a3160da5 100644 --- a/test/test_internals/testcontainers_ext.go +++ b/test/test_internals/testcontainers_ext.go @@ -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 }