🚨 Test: fix race condition in parallel tests (#2734)

Tests that call SetParserDecoder were causing a race condition with
other tests that read from decoderPoolMap. Fix by making the offending
tests not run in parallel.
pull/2739/head
nickajacks1 2023-11-22 09:38:49 -08:00 committed by GitHub
parent 2c5d883a69
commit 12e0e487ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -636,7 +636,6 @@ func Test_Ctx_ParamParser(t *testing.T) {
// go test -run Test_Ctx_BodyParser_WithSetParserDecoder
func Test_Ctx_BodyParser_WithSetParserDecoder(t *testing.T) {
t.Parallel()
type CustomTime time.Time
timeConverter := func(value string) reflect.Value {
@ -4555,7 +4554,6 @@ func Test_Ctx_QueryParser_WithoutSplitting(t *testing.T) {
// go test -run Test_Ctx_QueryParser_WithSetParserDecoder -v
func Test_Ctx_QueryParser_WithSetParserDecoder(t *testing.T) {
t.Parallel()
type NonRFCTime time.Time
nonRFCConverter := func(value string) reflect.Value {
@ -4885,7 +4883,6 @@ func Test_Ctx_ReqHeaderParser_WithoutSplitting(t *testing.T) {
// go test -run Test_Ctx_ReqHeaderParser_WithSetParserDecoder -v
func Test_Ctx_ReqHeaderParser_WithSetParserDecoder(t *testing.T) {
t.Parallel()
type NonRFCTime time.Time
nonRFCConverter := func(value string) reflect.Value {