Skip to content

Commit

Permalink
test: get_config
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed Dec 31, 2023
1 parent b59c980 commit 45767d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
]
node-version: [ 12, 14, 16, 18, 20, 21 ]
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Checkout Git Source
uses: actions/checkout@master

Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/cases/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,15 @@ exports = module.exports = function (logdir) {
{ key: 'data.enable_fatal_error_coredump', rule: { label: 'false', test: value => value === false } },
{ key: 'data.enable_http_profiling', rule: { label: 'false', test: value => value === false } },
{ key: 'data.enable_auto_incr_heap_limit', rule: { label: 'false', test: value => value === false } },
{ key: 'data.enable_avoid_rss_leak', rule: { label: 'false', test: value => value === false } },
{ key: 'data.m_mmap_threshold', rule: /^128$/ },
],
xprofctlRules(data) {
return [new RegExp(`^X-Profiler 当前配置\\(pid ${data.pid}\\):\n`
+ ' - auto_incr_heap_limit_size: 256\n'
+ ' - check_throw: false\n'
+ ' - enable_auto_incr_heap_limit: false\n'
+ ' - enable_avoid_rss_leak: false\n'
+ ' - enable_fatal_error_coredump: false\n'
+ ' - enable_fatal_error_hook: true\n'
+ ' - enable_fatal_error_report: true\n'
Expand All @@ -252,6 +255,7 @@ exports = module.exports = function (logdir) {
+ ' - log_interval: 60\n'
+ ' - log_level: 2\n'
+ ' - log_type: 1\n'
+ ' - m_mmap_threshold: 128\n'
+ ' - patch_http: true\n'
+ ' - patch_http_timeout: 30')
];
Expand Down

0 comments on commit 45767d4

Please sign in to comment.