fix: unitest

This commit is contained in:
xucong053
2022-07-25 21:15:03 +08:00
committed by 徐聪
parent 4044c15974
commit 37d222252d
4 changed files with 26 additions and 42 deletions
+2 -3
View File
@@ -219,13 +219,12 @@ func (b *HRPBoomer) PollTasks() {
if len(b.Boomer.GetTasksChan()) > 0 {
continue
}
profile := boomer.BytesToProfile(tasks.Profile)
//Todo: 过滤掉已经传输过的task
if tasks.Tasks != nil {
testCases := b.BytesToTestCases(tasks.Tasks)
go b.runTasks(testCases, profile)
go b.runTasks(testCases, tasks.Profile)
} else {
go b.rebalanceTasks(profile)
go b.rebalanceTasks(tasks.Profile)
}
case <-b.Boomer.GetCloseChan():