test(users, settings): add e2e tests for ResetUsedSpace and WorkerQueueLen
This commit is contained in:
parent
4dcd2c56ca
commit
21593af444
10 changed files with 165 additions and 44 deletions
|
@ -107,3 +107,13 @@ func (h *SettingsSvc) ReportErrors(c *gin.Context) {
|
|||
}
|
||||
c.JSON(q.Resp(200))
|
||||
}
|
||||
|
||||
type WorkerQueueLenResp struct {
|
||||
QueueLen int `json:"queueLen"`
|
||||
}
|
||||
|
||||
func (h *SettingsSvc) WorkerQueueLen(c *gin.Context) {
|
||||
c.JSON(200, &WorkerQueueLenResp{
|
||||
QueueLen: h.deps.Workers().QueueLen(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue