Skip to content

Commit

Permalink
Clean up function fixture use in reservedConcurrency test
Browse files Browse the repository at this point in the history
  • Loading branch information
pwithams committed Aug 26, 2020
1 parent 3ad5651 commit bccd773
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions lib/plugins/aws/package/compile/functions/index.test.js
Expand Up @@ -313,17 +313,17 @@ describe('AwsCompileFunctions', () => {
let firstCfTemplate;

before(() => {
return runServerless({
cwd: fixtures.map.function,
cliArgs: ['package'],
awsRequestStubMap: {
CloudFormation: {
describeStacks: { Stacks: [{ Outputs: [{ OutputKey: 'test' }] }] },
},
},
}).then(data => {
firstCfTemplate = data.cfTemplate;
});
return fixtures
.extend('function', {})
.then(fixturePath => {
return runServerless({
cwd: fixturePath,
cliArgs: ['package'],
});
})
.then(data => {
firstCfTemplate = data.cfTemplate;
});
});

after(fixtures.cleanup);
Expand All @@ -338,11 +338,6 @@ describe('AwsCompileFunctions', () => {
return runServerless({
cwd: fixturePath,
cliArgs: ['package'],
awsRequestStubMap: {
CloudFormation: {
describeStacks: { Stacks: [{ Outputs: [{ OutputKey: 'test' }] }] },
},
},
});
})
.then(data => {
Expand Down

0 comments on commit bccd773

Please sign in to comment.