Skip to content

Commit cfd150c

Browse files
Sort keys in test
Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
1 parent 96defff commit cfd150c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/templates/sprig_wrapper_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ func TestGetSprigFunc(t *testing.T) {
9595
`{{ list "Foo" "Bar" | join "_" }}`,
9696
"Foo_Bar",
9797
},
98+
// Pass to sortAlpha because the order returned isn't guaranteed
9899
"keys": {
99-
`{{ keys (dict "key1" "value1" "key2" "values2") }}`,
100+
`{{ keys (dict "key1" "value1" "key2" "values2") | sortAlpha }}`,
100101
"[key1 key2]",
101102
},
102103
"list": {

0 commit comments

Comments
 (0)