Skip to content

Commit 66b882e

Browse files
author
Jeff Gordon
committed
fix: odd serverless error output behavior
1 parent 58aee03 commit 66b882e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ test(
206206
process.chdir('tests/base');
207207
const { stdout: path } = npm(['pack', '../..']);
208208
npm(['i', path]);
209-
const { stderr } = sls(['package'], {
209+
const { stdout } = sls(['package'], {
210210
noThrow: true,
211211
env: {
212212
dockerizePip: true,
@@ -216,7 +216,7 @@ test(
216216
},
217217
});
218218
t.true(
219-
stderr.includes(
219+
stdout.includes(
220220
`-v ${__dirname}${sep}tests${sep}base${sep}custom_ssh:/root/.ssh/custom_ssh:z`
221221
),
222222
'docker command properly resolved'
@@ -1857,12 +1857,12 @@ test('poetry py3.9 fails packaging if poetry.lock is missing and flag requirePoe
18571857

18581858
const { stdout: path } = npm(['pack', '../..']);
18591859
npm(['i', path]);
1860-
const { stderr } = sls(['package'], {
1860+
const { stdout } = sls(['package'], {
18611861
env: { requirePoetryLockFile: 'true', slim: 'true' },
18621862
noThrow: true,
18631863
});
18641864
t.true(
1865-
stderr.includes(
1865+
stdout.includes(
18661866
'poetry.lock file not found - set requirePoetryLockFile to false to disable this error'
18671867
),
18681868
'flag works and error is properly reported'

0 commit comments

Comments
 (0)