Skip to content

Commit c485542

Browse files
committed
test: commenting out two fake-tests
1 parent ee003f1 commit c485542

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

src/webserver_test.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -173,31 +173,31 @@ func TestFakeToUpCodeCoverage(t *testing.T) {
173173
assert.False(false, tibiaNewslistArchiveDays())
174174
assert.False(false, tibiaNewslistLatest())
175175

176-
w = httptest.NewRecorder()
177-
c, _ = gin.CreateTestContext(w)
178-
179-
c.Params = []gin.Param{
180-
{
181-
Key: "days",
182-
Value: "90",
183-
},
184-
}
185-
186-
tibiaNewslist(c)
187-
assert.Equal(http.StatusOK, w.Code)
188-
189-
w = httptest.NewRecorder()
190-
c, _ = gin.CreateTestContext(w)
191-
192-
c.Params = []gin.Param{
193-
{
194-
Key: "news_id",
195-
Value: "6607",
196-
},
197-
}
198-
199-
tibiaNews(c)
200-
assert.Equal(http.StatusOK, w.Code)
176+
// w = httptest.NewRecorder()
177+
// c, _ = gin.CreateTestContext(w)
178+
179+
// c.Params = []gin.Param{
180+
// {
181+
// Key: "days",
182+
// Value: "90",
183+
// },
184+
// }
185+
186+
// tibiaNewslist(c)
187+
// assert.Equal(http.StatusOK, w.Code)
188+
189+
// w = httptest.NewRecorder()
190+
// c, _ = gin.CreateTestContext(w)
191+
192+
// c.Params = []gin.Param{
193+
// {
194+
// Key: "news_id",
195+
// Value: "6607",
196+
// },
197+
// }
198+
199+
// tibiaNews(c)
200+
// assert.Equal(http.StatusOK, w.Code)
201201

202202
w = httptest.NewRecorder()
203203
c, _ = gin.CreateTestContext(w)

0 commit comments

Comments
 (0)