0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Remove 10s delay for diagnostics

This commit is contained in:
G.Ambatte
2022-03-25 15:00:33 +13:00
parent aa7b3d985f
commit f246c96b28

View File

@@ -4,9 +4,9 @@ const supertest = require('supertest');
const app = supertest.agent(require('app.js').app)
.set('X-Forwarded-Proto', 'https');
const timeout = 10000; //ms
const start = Date.now();
while (Date.now() < start + timeout){};
// const timeout = 10000; //ms
// const start = Date.now();
// while (Date.now() < start + timeout){};
describe('Tests for static pages', ()=>{
it('Home page works', ()=>{