mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
wait for redis connection before running tests
This commit is contained in:
parent
cbe2b25835
commit
688a34029c
16
test/test.js
16
test/test.js
@ -72,12 +72,16 @@ describe("Crafatar", function() {
|
|||||||
// we might have to make 2 HTTP requests
|
// we might have to make 2 HTTP requests
|
||||||
this.timeout(config.server.http_timeout * 2 + 50);
|
this.timeout(config.server.http_timeout * 2 + 50);
|
||||||
|
|
||||||
before(function() {
|
before(function(done) {
|
||||||
cache.get_redis().flushall();
|
console.log("Flushing and waiting for redis ...");
|
||||||
// cause I don't know how big hard drives are these days
|
cache.get_redis().flushall(function() {
|
||||||
config.cleaner.disk_limit = Infinity;
|
console.log("Redis flushed!");
|
||||||
config.cleaner.redis_limit = Infinity;
|
// cause I don't know how big hard drives are these days
|
||||||
cleaner.run();
|
config.cleaner.disk_limit = Infinity;
|
||||||
|
config.cleaner.redis_limit = Infinity;
|
||||||
|
cleaner.run();
|
||||||
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("UUID/username", function() {
|
describe("UUID/username", function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user