Skip to content

Commit d25fcf6

Browse files
committed
add test dupe check up front
1 parent bb00c25 commit d25fcf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provider/formtype_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ func TestValidateFormType(t *testing.T) {
240240
for _, c := range cases {
241241
t.Run(c.name, func(t *testing.T) {
242242
t.Parallel()
243-
244-
formTypesChecked[c.config.String()] = struct{}{}
245-
formTypeTest(t, c)
246243
if _, ok := formTypesChecked[c.config.String()]; ok {
247244
t.Log("Duplicated form type check, delete this extra test case")
248245
t.Fatalf("form type %q already checked", c.config.String())
249246
}
247+
248+
formTypesChecked[c.config.String()] = struct{}{}
249+
formTypeTest(t, c)
250250
})
251251
}
252252
})

0 commit comments

Comments
 (0)