Skip to content

Commit b948468

Browse files
authored
Fix lint issues and race condition
1 parent f23f632 commit b948468

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

binder/binder_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ func Test_GetAndPutToThePool(t *testing.T) {
3232
}
3333

3434
func Test_Binders_ErrorPaths(t *testing.T) {
35-
t.Parallel()
36-
3735
t.Run("query binder invalid key", func(t *testing.T) {
3836
b := &QueryBinding{}
3937
req := fasthttp.AcquireRequest()
@@ -98,8 +96,8 @@ func Test_parse_function_maps(t *testing.T) {
9896
}
9997

10098
func Test_SetParserDecoder_UnknownKeys(t *testing.T) {
101-
t.Parallel()
10299
SetParserDecoder(ParserConfig{IgnoreUnknownKeys: false})
100+
defer SetParserDecoder(ParserConfig{IgnoreUnknownKeys: true, ZeroEmpty: true})
103101
type user struct {
104102
Name string `query:"name"`
105103
}
@@ -110,8 +108,6 @@ func Test_SetParserDecoder_UnknownKeys(t *testing.T) {
110108
}
111109

112110
func Test_SetParserDecoder_CustomConverter(t *testing.T) {
113-
t.Parallel()
114-
115111
type myInt int
116112
conv := func(s string) reflect.Value {
117113
v, _ := strconv.Atoi(s)

0 commit comments

Comments
 (0)