Skip to content

Commit f9f2d82

Browse files
committed
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 <github@gone.nl>
1 parent bd1b1a1 commit f9f2d82

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli/command/cli_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ func TestSetGoDebug(t *testing.T) {
358358
assert.Equal(t, "val1,val2", os.Getenv("GODEBUG"))
359359
})
360360
t.Run("GODEBUG in context metadata can set env", func(t *testing.T) {
361+
t.Setenv("GODEBUG", "")
361362
meta := store.Metadata{
362363
Metadata: DockerContext{
363364
AdditionalFields: map[string]any{

0 commit comments

Comments
 (0)