diff options
author | isaacs <i@izs.me> | 2014-09-20 03:24:08 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-09-20 03:29:10 +0400 |
commit | 6784767fe15e28b44c81a1d4bb1738c642a65d78 (patch) | |
tree | a78de762068367ed584cfb3cd9ccbc53d78a8ba2 /test | |
parent | 42c872b32cadc0e555638fc78eab3a38a04401d8 (diff) |
Make all write streams atomic
IT IS ALWAYS A #%@^& RACE CONDITION!
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/cache-add-localdir-fallback.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tap/cache-add-localdir-fallback.js b/test/tap/cache-add-localdir-fallback.js index 6b036c380..e45a88969 100644 --- a/test/tap/cache-add-localdir-fallback.js +++ b/test/tap/cache-add-localdir-fallback.js @@ -9,6 +9,7 @@ npm.load({loglevel : "silent"}, function () { var cache = requireInject("../../lib/cache.js", { "graceful-fs": { + WriteStream: require('graceful-fs').WriteStream, stat: function (file, cb) { process.nextTick(function () { switch (file) { |