mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-01 10:54:11 +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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user