mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
don't update file dates
this was originally implemented because we wanted to delete the oldest images on disk where 'oldest' means not *used* for the longest time that's not useful and was never actually implemented, so we don't need this
This commit is contained in:
@@ -204,14 +204,6 @@ describe("Crafatar", function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
it("should ignore file updates on invalid files", function(done) {
|
||||
assert.doesNotThrow(function() {
|
||||
cache.update_timestamp(rid, "0123456789abcdef0123456789abcdef", "invalid-file.png", false, function(err) {
|
||||
assert.ifError(err);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
it("should not find the file", function(done) {
|
||||
skins.open_skin(rid, "non/existent/path", function(err, img) {
|
||||
assert(err);
|
||||
|
||||
Reference in New Issue
Block a user