From 3e3c76b74192e4131663ef5251b159c5bcef9269 Mon Sep 17 00:00:00 2001 From: luky116 Date: Tue, 30 Apr 2024 17:32:57 +0800 Subject: [PATCH] handler error --- common/testcontainers/testcontainers.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, }