Skip to content

Commit 5bd4712

Browse files
Applied proposed code changes
1 parent 7726980 commit 5bd4712

12 files changed

+3
-3
lines changed

commercetools/custom_fields_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,20 @@ func TestAccCustomField_SetAndRemove(t *testing.T) {
173173

174174
func getResourceConfig(resourceType, resourceName, resourceKey string, customFields []string) string {
175175
// Load templates
176-
template, err := template.ParseGlob("test_templates/custom_fields_test/*")
176+
tpl, err := template.ParseGlob("testdata/custom_fields_test/*")
177177
if err != nil {
178178
panic(err)
179179
}
180180

181-
template_data := map[string]any{
181+
templateData := map[string]any{
182182
"resource_type": resourceType,
183183
"resource_name": resourceName,
184184
"resource_key": resourceKey,
185185
"custom": customFields,
186186
}
187187

188188
var out bytes.Buffer
189-
err = template.ExecuteTemplate(&out, "main", template_data)
189+
err = tpl.ExecuteTemplate(&out, "main", templateData)
190190
if err != nil {
191191
panic(err)
192192
}

0 commit comments

Comments
 (0)