Skip to content

Commit

Permalink
attempt to fix travis build - no functional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 10, 2015
1 parent ad4fe46 commit e1aa706
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/fs_delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ function deleteDataDir (callback) {
// delete all files in _data dir
fs.readdir(dataDir, function(err, files) {
var filecount = files.length
console.log(files +" " + filecount);
console.log(filecount +" | " + files);
// loop through list of files and remove them
for(var i in files) { // *assume* there's always at least one file
var file = files[i]; // this method is NOT PUBLIC
console.log(i + ' Deleting ' +file);
// console.log(i + ' Deleting ' +file);
unlinkHandler(file, (parseInt(i, 10) === filecount-1), callback);
}
});
Expand Down
6 changes: 5 additions & 1 deletion test/z_teardown.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ test(chalk.cyan('Create dummy records to exercise ') + chalk.red('deleteDataDir
FS.saveFile(record, function(){
// console.log(' - - - - - - - ');
// console.log(record.id);
t.end();
FS.fileExists(record, function (err, exists) {
t.equal(exists, true, chalk.green("✓ ") + chalk.red('record created'));
t.end();
});

});
});
});
Expand Down

0 comments on commit e1aa706

Please sign in to comment.