|
@@ -5,7 +5,7 @@ var networking = require('../modules/networking');
|
|
var helpers = require('../modules/helpers');
|
|
var helpers = require('../modules/helpers');
|
|
var config = require('../modules/config');
|
|
var config = require('../modules/config');
|
|
var skins = require('../modules/skins');
|
|
var skins = require('../modules/skins');
|
|
-var redis = require("../modules/cache");
|
|
|
|
|
|
+var cache = require("../modules/cache");
|
|
|
|
|
|
var uuids = fs.readFileSync('test/uuids.txt').toString().split("\r\n");
|
|
var uuids = fs.readFileSync('test/uuids.txt').toString().split("\r\n");
|
|
// Get a random UUID in order to prevent rate limiting
|
|
// Get a random UUID in order to prevent rate limiting
|
|
@@ -13,7 +13,7 @@ var uuid = uuids[Math.floor(Math.random() * uuids.length)];
|
|
|
|
|
|
describe('Avatar Serving', function(){
|
|
describe('Avatar Serving', function(){
|
|
before(function() {
|
|
before(function() {
|
|
- redis.flushall();
|
|
|
|
|
|
+ cache.get_redis().flushall();
|
|
});
|
|
});
|
|
describe('UUID', function(){
|
|
describe('UUID', function(){
|
|
it("should be an invalid uuid", function(done){
|
|
it("should be an invalid uuid", function(done){
|