Karma-Jasmine测试执行错误HeadlessChrome

时间:2018-05-14 12:30:37

标签: angular typescript jasmine karma-runner

我正在尝试测试我的图表组件,我收到以下错误:

  

HeadlessChrome 64.0.3240(Linux 0.0.0)ERROR已断开连接,因为   在60000毫秒内没有消息。 HeadlessChrome 64.0.3240(Linux 0.0.0):   执行0 of 416 DISCONNECTED(1分0.007秒/ 0秒)   HeadlessChrome 64.0.3240(Linux 0.0.0)ERROR HeadlessChrome 64.0.3240   (Linux 0.0.0):执行0 of 416 DISCONNECTED(1分0.007秒/ 0   秒)

我不知道问题所在。我做错了什么?

我在不同的其他组件中使用图表组件作为共享组件。

foreach ($res->result() as $row)
        {
            $query = "SELECT count(*) AS count FROM
                      (SELECT COUNT(DISTINCT TASKS.task_ID) AS count
                      FROM
                  TASKS JOIN TRANSLATOR_LANGUAGES
                  JOIN PROJECT_USERS JOIN TRANSLATED_TASKS JOIN PROJECTS
                      ON
                  (TASKS.task_ID = TRANSLATED_TASKS.task_ID AND
                  TASKS.project_ID = PROJECT_USERS.project_ID AND
                  PROJECTS.project_ID = TASKS.project_ID AND
                  TRANSLATED_TASKS.language_code = TRANSLATOR_LANGUAGES.language_code AND
                  PROJECT_USERS.translator_ID = TRANSLATOR_LANGUAGES.translator_ID AND
                  PROJECT_USERS.language_code = TRANSLATOR_LANGUAGES.language_code)
                  WHERE
                  ? = TRANSLATOR_LANGUAGES.language_code AND
                  ? = TRANSLATOR_LANGUAGES.translator_ID AND
                  ? = PROJECT_USERS.project_ID AND
                                  TASKS.archived < ?
                  GROUP BY TASKS.task_ID, TRANSLATOR_LANGUAGES.language_code, PROJECTS.vote_threshold
                  HAVING " . $this->getHavingClause($filter) . ") STATS_PHP"; 

            $res2 = $this->db->query($query, array($row->language_code,
                                       $translator_ID,
                                   $project_ID,
                                   $archived))->result_array();

0 个答案:

没有答案