Skip to content

Commit 2f23db5

Browse files
renarsvilnispstadler
authored andcommitted
Bugfix: Convert async fs operation to sync so it doesnt fail in newer… (#175)
* Bugfix: Convert async fs operation to sync so it doesnt fail in newer node.js versions * Fix unlinkSync in tests
1 parent 7a40a11 commit 2f23db5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/transport/shell.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Shell.prototype.transfer = function(files, remoteDir, options) {
131131

132132
Future.wait(tasks);
133133

134-
fs.unlink(tmpFile);
134+
fs.unlinkSync(tmpFile);
135135

136136
return results;
137137
};

test/test.transport.shell.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('transport/shell', function() {
3333
writeTempFile: WRITE_TEMP_FILE_STUB
3434
},
3535
'fs': {
36-
unlink: function() {}
36+
unlinkSync: function() {}
3737
}
3838
};
3939

0 commit comments

Comments
 (0)