Skip to content

test(bug): issue with tibiaNewslist and tibiaNews inside TestFakeToUpCodeCoverage #512

Description

@tobiasehlert

Both following tests are failing with 502 instead of an 200.

tibiaNewslist:

w = httptest.NewRecorder()
c, _ = gin.CreateTestContext(w)
c.Params = []gin.Param{
{
Key: "days",
Value: "90",
},
}
tibiaNewslist(c)
assert.Equal(http.StatusOK, w.Code)

tibiaNews:

w = httptest.NewRecorder()
c, _ = gin.CreateTestContext(w)
c.Params = []gin.Param{
{
Key: "news_id",
Value: "6607",
},
}
tibiaNews(c)
assert.Equal(http.StatusOK, w.Code)

Currently:
Those two test-cases in TestFakeToUpCodeCoverage are commented out for now by #511.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions