This commit is contained in:
Saksham Arya 2025-06-30 15:25:44 +05:30
parent 312b621908
commit 14fd129b90
2 changed files with 5 additions and 7 deletions

View File

@ -22,7 +22,6 @@ import (
"time"
"github.com/gin-contrib/sse"
"github.com/gin-gonic/gin/binding"
"github.com/gin-gonic/gin/render"
)

View File

@ -27,13 +27,12 @@ import (
"time"
"github.com/gin-contrib/sse"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
"github.com/gin-gonic/gin/binding"
"github.com/gin-gonic/gin/codec/json"
testdata "github.com/gin-gonic/gin/testdata/protoexample"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
)
var _ context.Context = (*Context)(nil)
@ -3448,7 +3447,7 @@ func TestParallelHeaderAccess(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
for _ = range iterations {
for range iterations {
c.Header("key", "value")
}
}()
@ -3457,7 +3456,7 @@ func TestParallelHeaderAccess(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
for _ = range iterations {
for range iterations {
_ = c.GetHeader("key")
}
}()