Skip to content

Commit 771be40

Browse files
committed
mark the check up front
1 parent 8356ff7 commit 771be40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/formtype_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ func TestValidateFormType(t *testing.T) {
241241
t.Run(c.name, func(t *testing.T) {
242242
t.Parallel()
243243

244+
formTypesChecked[c.config.String()] = struct{}{}
244245
formTypeTest(t, c)
245246
if _, ok := formTypesChecked[c.config.String()]; ok {
246247
t.Log("Duplicated form type check, delete this extra test case")
247248
t.Fatalf("form type %q already checked", c.config.String())
248249
}
249-
formTypesChecked[c.config.String()] = struct{}{}
250250
})
251251
}
252252
})

0 commit comments

Comments
 (0)