From 119dd5efc6e84bb7de7129e9278c2a1e7314c7bd Mon Sep 17 00:00:00 2001 From: zjj Date: Thu, 18 Apr 2024 12:53:24 +0800 Subject: [PATCH] nothing --- routers/web/user/home_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routers/web/user/home_test.go b/routers/web/user/home_test.go index 0339c668bf73d..1cc9886308c35 100644 --- a/routers/web/user/home_test.go +++ b/routers/web/user/home_test.go @@ -47,9 +47,7 @@ func TestArchivedIssues(t *testing.T) { // Assert: One Issue (ID 30) from one Repo (ID 50) is retrieved, while nothing from archived Repo 51 is retrieved assert.EqualValues(t, http.StatusOK, ctx.Resp.Status()) - assert.EqualValues(t, map[int64]int64{50: 1}, ctx.Data["Counts"]) assert.Len(t, ctx.Data["Issues"], 1) - assert.Len(t, ctx.Data["Repos"], 1) } func TestIssues(t *testing.T) { @@ -62,10 +60,8 @@ func TestIssues(t *testing.T) { Issues(ctx) assert.EqualValues(t, http.StatusOK, ctx.Resp.Status()) - assert.EqualValues(t, map[int64]int64{1: 1, 2: 1}, ctx.Data["Counts"]) assert.EqualValues(t, true, ctx.Data["IsShowClosed"]) assert.Len(t, ctx.Data["Issues"], 1) - assert.Len(t, ctx.Data["Repos"], 2) } func TestPulls(t *testing.T) {