Explorar o código

force the cleaner to run, better coverage

Jake %!s(int64=10) %!d(string=hai) anos
pai
achega
5a4306db6a
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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() {