Browse Source

force the cleaner to run, better coverage

Jake 10 năm trước cách đây
mục cha
commit
5a4306db6a
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      test/test.js

+ 8 - 0
test/test.js

@@ -43,6 +43,10 @@ describe("Crafatar", function() {
 
   before(function() {
     cache.get_redis().flushall();
+    // largest possible integers, cause I don't know
+    // how big hard drives are these days
+    config.cleaning_disk_limit = Math.pow(2,32) - 1;;
+    config.cleaning_redis_limit = Math.pow(2,32) - 1;;
     cleaner.run();
   });
 
@@ -175,6 +179,10 @@ describe("Errors", function() {
   });
 });
 
+describe("Cleaner", function() {
+
+});
+
 describe("Server", function() {
   before(function(done) {
     server.boot(function() {