Permalink
Browse files

use fs.writeSync() instead of fs.write() so that unit tests doesn't f…

…ail randomly
  • Loading branch information...
1 parent a69f4f8 commit 434650f8e50da2c84f358be144fdf9a87abf5be6 @infynyxx infynyxx committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/graphite_tests.js
View
@@ -13,7 +13,7 @@ var fs = require('fs'),
var writeconfig = function(text,worker,cb,obj){
temp.open({suffix: '-statsdconf.js'}, function(err, info) {
if (err) throw err;
- fs.write(info.fd, text);
+ fs.writeSync(info.fd, text);
fs.close(info.fd, function(err) {
if (err) throw err;
worker(info.path,cb,obj);

0 comments on commit 434650f

Please sign in to comment.