From c91c6fbe9e917f72da7c2b76c3832bb2ecc849d8 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 9 Jan 2024 18:34:11 +0100 Subject: [PATCH] TestToConfigSmall ignore sort order of env vars (#3154) so this https://ci.woodpecker-ci.org/repos/3780/pipeline/11803/30 can not randomly happen --- pipeline/backend/docker/convert_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipeline/backend/docker/convert_test.go b/pipeline/backend/docker/convert_test.go index 874d477db..91e039719 100644 --- a/pipeline/backend/docker/convert_test.go +++ b/pipeline/backend/docker/convert_test.go @@ -16,6 +16,7 @@ package docker import ( "reflect" + "sort" "testing" "github.com/docker/docker/api/types" @@ -102,6 +103,7 @@ func TestToConfigSmall(t *testing.T) { }) assert.NotNil(t, conf) + sort.Strings(conf.Env) assert.EqualValues(t, &container.Config{ AttachStdout: true, AttachStderr: true,