Skip to content

Commit

Permalink
fixed context test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Danushka96 committed Feb 15, 2025
1 parent e5ab323 commit e65b900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestContext_GetAuthContext(t *testing.T) {
c, _ := gin.CreateTestContext(w)
tt.setupContext(c)

ctx := NewContext(c)
ctx := NewContext(c, nil)
auth, err := ctx.GetAuthContext()

if tt.expectError {
Expand Down Expand Up @@ -101,7 +101,7 @@ func TestContext_GetRequest(t *testing.T) {
req.Header.Set("Content-Type", "application/json")
c.Request = req

ctx := NewContext(c)
ctx := NewContext(c, nil)
var testReq TestRequest
err := ctx.GetRequest(&testReq)

Expand Down Expand Up @@ -176,7 +176,7 @@ func TestContext_GetPageRequest(t *testing.T) {
req.URL.RawQuery = q.Encode()
c.Request = req

ctx := NewContext(c)
ctx := NewContext(c, nil)
result := ctx.GetPageRequest()

if tt.expectAbort {
Expand Down

0 comments on commit e65b900

Please sign in to comment.