Skip to content

Commit

Permalink
use fs.writeSync() instead of fs.write() so that unit tests doesn't f…
Browse files Browse the repository at this point in the history
…ail randomly
  • Loading branch information
infynyxx committed May 16, 2012
1 parent a69f4f8 commit 434650f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/graphite_tests.js
Expand Up @@ -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);
Expand Down

0 comments on commit 434650f

Please sign in to comment.