mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user