mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-01 03:36:12 -04:00
fix test
This commit is contained in:
parent
dad04696c5
commit
53df2a83c3
@ -42,7 +42,7 @@ func TestIssueTemplate_Type(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestIssueTemplateLabels_UnmarshalYAML(t *testing.T) {
|
func TestIssueTemplateStringSlice_UnmarshalYAML(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
content string
|
content string
|
||||||
@ -88,7 +88,7 @@ labels:
|
|||||||
b: bb
|
b: bb
|
||||||
`,
|
`,
|
||||||
tmpl: &IssueTemplate{},
|
tmpl: &IssueTemplate{},
|
||||||
wantErr: "line 3: cannot unmarshal !!map into IssueTemplateLabels",
|
wantErr: "line 3: cannot unmarshal !!map into IssueTemplateStringSlice",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user