Skip to content

Commit 463f167

Browse files
committed
forgot to enable the setting for this test
1 parent 793fce6 commit 463f167

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pkg/yaml/formattest/encode_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ func TestAliasKey(t *testing.T) {
140140
name: "alias_key",
141141
folder: "alias_key",
142142
configureDecoder: noopDecoder,
143-
configureEncoder: noopEncoder,
143+
configureEncoder: func(enc *yaml.Encoder) {
144+
enc.SetCorrectAliasKeys(true)
145+
},
144146
}.Run(t)
145147
}

pkg/yaml/formattest/testcase.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func noopDecoder(_ *yaml.Decoder) {}
3232

3333
type encoderConfigureFunc func(*yaml.Encoder)
3434

35-
func noopEncoder(_ *yaml.Encoder) {}
35+
// func noopEncoder(_ *yaml.Encoder) {}
3636

3737
type formatTestCase struct {
3838
name string

0 commit comments

Comments
 (0)