mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 12:20:33 +00:00
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:
parent
2e26a526b1
commit
c91c6fbe9e
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue