Skip to content

Commit

Permalink
Default to 60 seconds for lambda timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Feb 23, 2015
1 parent ba287cf commit 1b9d469
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/node-lambda
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var AWS_HANDLER = process.env.AWS_HANDLER || 'index.handler';
var AWS_MODE = 'event';
var AWS_ROLE = process.env.AWS_ROLE || 'missing';
var AWS_MEMORY_SIZE = process.env.AWS_MEMORY_SIZE || 128;
var AWS_TIMEOUT = process.env.AWS_TIMEOUT || 3;
var AWS_TIMEOUT = process.env.AWS_TIMEOUT || 60;
var AWS_DESCRIPTION = process.env.AWS_DESCRIPTION || '';
var AWS_RUNTIME = process.env.AWS_RUNTIME || 'nodejs';
var AWS_FUNCTION_VERSION = process.env.AWS_FUNCTION_VERSION || packageJson.version;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-lambda",
"version": "0.3.13",
"version": "0.3.14",
"description": "Command line tool for locally running and remotely deploying your node.js applications to Amazon Lambda.",
"main": "lib/main.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('node-lambda', function() {
});

it('version should be set', function() {
assert.equal(lambda.version, '0.3.13');
assert.equal(lambda.version, '0.3.14');
});

describe('_params', function() {
Expand Down Expand Up @@ -87,7 +87,7 @@ describe('node-lambda', function() {
});

it('_npm adds node_modules', function(done) {
this.timeout(5000); // give it time to build the node modules
this.timeout(10000); // give it time to build the node modules

lambda._npmInstall(program, codeDirectory, function(err, result) {
var contents = fs.readdirSync(codeDirectory);
Expand Down

0 comments on commit 1b9d469

Please sign in to comment.