From f9f2d822b9cdde23e7d40ee2f880811d32e43206 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 13 Jan 2026 14:23:19 +0100 Subject: [PATCH] cli/command: make TestSetGoDebug more predictable Prevent the test from failing if GODEBUG is set in the current environment. Signed-off-by: Sebastiaan van Stijn --- cli/command/cli_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/cli_test.go b/cli/command/cli_test.go index 27eb103a1f..be8ff2a661 100644 --- a/cli/command/cli_test.go +++ b/cli/command/cli_test.go @@ -358,6 +358,7 @@ func TestSetGoDebug(t *testing.T) { assert.Equal(t, "val1,val2", os.Getenv("GODEBUG")) }) t.Run("GODEBUG in context metadata can set env", func(t *testing.T) { + t.Setenv("GODEBUG", "") meta := store.Metadata{ Metadata: DockerContext{ AdditionalFields: map[string]any{