Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Lambda.prototype._eventSourceList = function (program) {
Lambda.prototype._zipfileTmpPath = function (program) {
var ms_since_epoch = +new Date();
var filename = program.functionName + '-' + ms_since_epoch + '.zip';
var zipfile = path.join(os.tmpDir(), filename);
var zipfile = path.join(os.tmpdir(), filename);

return zipfile;
};
Expand Down
4 changes: 2 additions & 2 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('node-lambda', function () {

after(function () {
_timeout({ this: this, sec: 30 }); // give it time to remove
fs.removeSync(path.join(os.tmpDir(), `${program.functionName}-[0-9]*`));
fs.removeSync(path.join(os.tmpdir(), `${program.functionName}-[0-9]*`));
});

it('version should be set', function () {
Expand Down Expand Up @@ -493,7 +493,7 @@ describe('node-lambda', function () {
});

describe('_readArchive', function () {
const testZipFile = path.join(os.tmpDir(), 'node-lambda-test.zip');
const testZipFile = path.join(os.tmpdir(), 'node-lambda-test.zip');
var bufferExpected = null;
before(function(done) {
_timeout({ this: this, sec: 30 }); // give it time to zip
Expand Down