* Refactor checkWorkload method.

This commit is contained in:
tianshujie
2023-09-07 16:42:13 +08:00
parent 77353b9845
commit b0697c3a79
3 changed files with 37 additions and 37 deletions
+3 -3
View File
@@ -73,13 +73,13 @@ class executionTest
*/
public function checkWorkloadTest($executionID, $type = '', $percent = 0)
{
global $tester;
global $tester, $config;
$tester->loadModel('programplan');
$_POST['percent'] = $percent;
$_POST['products'][0] = 1;
$_POST['branch'][0] = array();
$oldExecution = empty($executionID) ? '' : $this->executionModel->getByID($executionID);
$this->executionModel->checkWorkload($type, $percent, $oldExecution);
unset($_POST);
if(dao::isError()) return dao::getError();
return true;