mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-21 07:56:31 +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 (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
|
@ -102,6 +103,7 @@ func TestToConfigSmall(t *testing.T) {
|
||||||
})
|
})
|
||||||
|
|
||||||
assert.NotNil(t, conf)
|
assert.NotNil(t, conf)
|
||||||
|
sort.Strings(conf.Env)
|
||||||
assert.EqualValues(t, &container.Config{
|
assert.EqualValues(t, &container.Config{
|
||||||
AttachStdout: true,
|
AttachStdout: true,
|
||||||
AttachStderr: true,
|
AttachStderr: true,
|
||||||
|
|
Loading…
Reference in a new issue