diff --git a/common/testcontainers/testcontainers.go b/common/testcontainers/testcontainers.go index d3599997a5..ab9918049b 100644 --- a/common/testcontainers/testcontainers.go +++ b/common/testcontainers/testcontainers.go @@ -33,7 +33,10 @@ func NewTestcontainerApps() *TestcontainerApps { timestamp := time.Now().Nanosecond() // In order to solve the problem of "creating reaper failed: failed to create container" // refer to https://github.com/testcontainers/testcontainers-go/issues/2172 - os.Setenv("TESTCONTAINERS_RYUK_DISABLED", "true") + err := os.Setenv("TESTCONTAINERS_RYUK_DISABLED", "true") + if err != nil { + panic("set env failed: " + err.Error()) + } return &TestcontainerApps{ Timestamp: timestamp, }