Skip to content

Commit

Permalink
Remove redundant test case
Browse files Browse the repository at this point in the history
  • Loading branch information
standielpls committed Jun 24, 2024
1 parent 0b643f8 commit 238c2b7
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/core/test/app-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,6 @@ describe('app middleware', () => {
const output = await app(input);
output.resultsUrl.should.eql('https://s3-fake.zapier.com/1234/foo.json');
});
it('should stash big payloads', async () => {
const rpc = makeRpc();
mockRpcGetPresignedPostCall('1234/foo.json');
mockUpload();

const appDefinition = dataTools.deepCopy(exampleAppDefinition);

const app = createApp(appDefinition);

// returns 10mb of response
const input = createTestInput(
'resources.really_big_response.list.operation.perform',
appDefinition
);
input._zapier.rpc = rpc;

// set the payload autostash limit
// this limit is lower than res, so do not stash, let it fail
input._zapier.event.autostashPayloadOutputLimit = 8 * 1024 * 1024;

const output = await app(input);
output.should.not.have.property('resultsUrl');
});
it('should not stash if payload is bigger than autostash limit', async () => {
const rpc = makeRpc();
mockRpcGetPresignedPostCall('1234/foo.json');
Expand Down

0 comments on commit 238c2b7

Please sign in to comment.