Skip to content
Snippets Groups Projects
Unverified Commit 5c24e295 authored by Feng Yu's avatar Feng Yu Committed by GitHub
Browse files

test: add timeout option test for exec (#12278)

parent 84ae2cd9
No related branches found
No related tags found
No related merge requests found
...@@ -521,6 +521,28 @@ describe('util/exec/index', () => { ...@@ -521,6 +521,28 @@ describe('util/exec/index', () => {
}, },
], ],
[
'Explicit timeout',
{
processEnv,
inCmd,
inOpts: {
timeout: 20 * 60 * 1000,
},
outCmd,
outOpts: [
{
cwd,
encoding,
env: envMock.basic,
timeout: 20 * 60 * 1000,
maxBuffer: 10485760,
},
],
adminConfig: { binarySource: 'docker' },
},
],
[ [
'Explicit maxBuffer', 'Explicit maxBuffer',
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment