From 30c4ba200c608134d521e3d07d85ec205cf0fcf3 Mon Sep 17 00:00:00 2001 From: jomo Date: Fri, 13 Feb 2015 19:18:58 +0100 Subject: [PATCH] Infinity ... relax, take your time. JavaScript has no Integers, only Numbers. Infinity is typeof Number --- test/test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index f1b3a9b..4f1cc03 100644 --- a/test/test.js +++ b/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(); });