mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 22:26:16 -08:00
fix(packaging): bound helper probe capture
This commit is contained in:
1 parent
43f4388665
commit
a651dd69a4
11 files changed
+79
-28
No files matched your search
@@ -91,7 +91,7 @@ const DEB_SYSTEM_PACKAGE_DEPENDENCIES = [
|
||||
'libgbm1',
|
||||
];
|
||||
|
||||
test('uses the shared frozen 3000 ms runtime probe timeout contract', async () => {
|
||||
test('uses the shared frozen runtime probe resource contract', async () => {
|
||||
assert.equal(
|
||||
fs.existsSync(runtimeProbeContractUrl),
|
||||
true,
|
||||
@@ -108,10 +108,18 @@ test('uses the shared frozen 3000 ms runtime probe timeout contract', async () =
|
||||
);
|
||||
assert.equal(Object.isFrozen(runtimeProbeContract), true);
|
||||
assert.equal(runtimeProbeContract.RUNTIME_PROBE_TIMEOUT_MS, 3000);
|
||||
assert.equal(
|
||||
runtimeProbeContract.RUNTIME_PROBE_MAX_BUFFER_BYTES,
|
||||
16 * 1024 * 1024
|
||||
);
|
||||
assert.match(
|
||||
fs.readFileSync(runtimeProbeContractTypesUrl, 'utf8'),
|
||||
/readonly RUNTIME_PROBE_TIMEOUT_MS: 3000/
|
||||
);
|
||||
assert.match(
|
||||
fs.readFileSync(runtimeProbeContractTypesUrl, 'utf8'),
|
||||
/readonly RUNTIME_PROBE_MAX_BUFFER_BYTES: 16777216/
|
||||
);
|
||||
|
||||
const verifierSource = fs.readFileSync(verifierUrl, 'utf8');
|
||||
assert.match(
|
||||
@@ -133,7 +141,7 @@ test('uses the shared frozen 3000 ms runtime probe timeout contract', async () =
|
||||
);
|
||||
assert.match(
|
||||
backendContractsSource,
|
||||
/export const \{ RUNTIME_PROBE_TIMEOUT_MS \} = runtimeProbeContract/
|
||||
/export const \{\s*RUNTIME_PROBE_MAX_BUFFER_BYTES,\s*RUNTIME_PROBE_TIMEOUT_MS,?\s*\}\s*=\s*runtimeProbeContract/
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
backendContractsSource,
|
||||
@@ -784,6 +792,7 @@ test('validates an x64 system payload and executes one bounded helper probe', ()
|
||||
encoding: 'utf8',
|
||||
env: { PATH: '/usr/bin' },
|
||||
killSignal: 'SIGKILL',
|
||||
maxBuffer: 16 * 1024 * 1024,
|
||||
timeout: 3000,
|
||||
windowsHide: true,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user