浏览代码

Infinity

... relax, take your time.

JavaScript has no Integers, only Numbers. Infinity is typeof Number
jomo 10 年之前
父节点
当前提交
30c4ba200c
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      test/test.js

+ 3 - 4
test/test.js

@@ -43,10 +43,9 @@ 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;
+    // cause I don't know how big hard drives are these days
+    config.cleaning_disk_limit = Infinity;
+    config.cleaning_redis_limit = Infinity;
     cleaner.run();
   });