call back after writing to cache, fixes #86

remove_hash has no callback because it's only called very rarely and the write/change calls can cause more trouble
This commit is contained in:
jomo
2015-02-09 23:39:50 +01:00
parent 1baae79402
commit 572ce487ba
3 changed files with 28 additions and 16 deletions

View File

@@ -163,9 +163,10 @@ describe("Crafatar", function() {
});
it("should ignore file updates on invalid files", function(done) {
assert.doesNotThrow(function() {
cache.update_timestamp(rid, "0123456789abcdef0123456789abcdef", "invalid-file.png");
cache.update_timestamp(rid, "0123456789abcdef0123456789abcdef", "invalid-file.png", function(err) {
done();
});
});
done();
});
it("should not find the file", function(done) {
skins.open_skin(rid, 'non/existant/path', function(err, img) {