Skip to content

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

@tobiasehlert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions