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
|
@ -25,4 +25,5 @@ type IWorkerPool interface {
|
|||
Stop()
|
||||
AddHandler(msgType string, handler MsgHandler)
|
||||
DelHandler(msgType string)
|
||||
QueueLen() int
|
||||
}
|
||||
|
|
|
@ -174,3 +174,7 @@ func (wp *WorkerPool) AddHandler(msgType string, handler worker.MsgHandler) {
|
|||
func (wp *WorkerPool) DelHandler(msgType string) {
|
||||
delete(wp.msgHandlers, msgType)
|
||||
}
|
||||
|
||||
func (wp *WorkerPool) QueueLen() int {
|
||||
return len(wp.queue)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue