Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9140af0

Browse files
Jean-Christophe Sirotchris-crone
authored andcommitted
Update unit test since mergo 0.3.7 changed slice merge order (darccio/mergo#102)
Signed-off-by: Jean-Christophe Sirot <[email protected]>
1 parent 6b0d2de commit 9140af0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

types/parameters/merge_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package parameters
22

33
import (
4+
"fmt"
45
"testing"
56

67
"gotest.tools/assert"
@@ -42,12 +43,15 @@ func TestMerge(t *testing.T) {
4243
assert.NilError(t, err)
4344
parameters, err := Merge(m1, m2, m3)
4445
assert.NilError(t, err)
46+
fmt.Println(parameters)
4547
assert.Check(t, is.DeepEqual(parameters.Flatten(), map[string]string{
4648
"foo": "bar",
4749
"bar.baz": "boz",
4850
"bar.port": "10",
4951
"bar.foo": "toto",
50-
"baz.0": "c",
52+
"baz.0": "a",
53+
"baz.1": "b",
54+
"baz.2": "c",
5155
"banana": "monkey",
5256
}))
5357
}

0 commit comments

Comments
 (0)