Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: check child process exit code #136

Merged
merged 3 commits into from
Feb 11, 2022
Merged

test: check child process exit code #136

merged 3 commits into from
Feb 11, 2022

Conversation

hyj1991
Copy link
Member

@hyj1991 hyj1991 commented Feb 11, 2022

No description provided.

@codecov
Copy link

codecov bot commented Feb 11, 2022

Codecov Report

Merging #136 (22a2973) into master (7184d68) will not change coverage.
The diff coverage is n/a.

❗ Current head 22a2973 differs from pull request most recent head aea52b2. Consider uploading reports for the commit aea52b2 to get more accurate results

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #136   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          287       287           
=========================================
  Hits           287       287           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7184d68...aea52b2. Read the comment docs.

return new Promise(resolve => proc.on('close', (code, signal) => resolve({ code, signal })));
};

exports.checkChildProcessExitInfo = function (expect, exitInfo) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我记得有几个地方是测试 oom fatal error 的,应该是需要指定 exit signal 为 sigabrt 的吧

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我记得有几个地方是测试 oom fatal error 的,应该是需要指定 exit signal 为 sigabrt 的吧

OOM 那边的没加这个测试,只在正常退出的 command 和 logbypass 加了

@hyj1991 hyj1991 merged commit 5a39e3f into master Feb 11, 2022
@hyj1991 hyj1991 deleted the check_exit_code branch March 19, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants