merge main into repository-context-enabled-background

This commit is contained in:
ryan
2026-06-18 12:13:45 +08:00
10 changed files with 237 additions and 42 deletions
+2 -3
View File
@@ -97,8 +97,7 @@ func setupPushTest(t *testing.T) (*gorm.DB, *miniredis.Miniredis, func()) {
}
func setupTestRouter(authUser *model.User) *gin.Engine {
gin.SetMode(gin.TestMode)
r := gin.New()
r := testhelper.NewTestGinEngine()
adminGroup := r.Group("/api/v1/admin/push")
adminGroup.Use(func(c *gin.Context) {
@@ -655,7 +654,7 @@ func TestPushChannelAPI(t *testing.T) {
defer cleanup()
// 构建路由以进行 HTTP 模拟请求
r := gin.New()
r := testhelper.NewTestGinEngine()
adminGroup := r.Group("/api/v1/admin")
{
adminGroup.GET("/push/channels", ListChannels)