TestToConfigSmall ignore sort order of env vars (#3154)

so this https://ci.woodpecker-ci.org/repos/3780/pipeline/11803/30 can
not randomly happen
This commit is contained in:
6543 2024-01-09 18:34:11 +01:00 committed by GitHub
parent 2e26a526b1
commit c91c6fbe9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,