local filesystem tests written, all passing

This commit is contained in:
Abhinav Adduri 2017-06-09 16:31:34 -07:00
parent 8baa6d0964
commit 9557701527
4 changed files with 1343 additions and 1057 deletions

View file

@ -19,7 +19,7 @@ const redis_client = redis.createClient({
});
redis_client.on('error', err => {
log.info('Redis: ', err);
log.info('Redis:', err);
});
if (notLocalHost) {
@ -94,7 +94,10 @@ function localSet(id, file, filename, url) {
});
});
fstream.on('error', () => reject());
fstream.on('error', () => {
log.error('localSet:', 'Failed upload of ' + id);
reject();
});
});
}