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.
Both following tests are failing with 502 instead of an 200.
tibiaNewslist:
tibiadata-api-go/src/webserver_test.go
Lines 176 to 187 in 6f1a6d6
tibiaNews:
tibiadata-api-go/src/webserver_test.go
Lines 189 to 200 in 6f1a6d6
Currently:
Those two test-cases in TestFakeToUpCodeCoverage are commented out for now by #511.