1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-17 05:22:18 +00:00

Introduce singleton API client with retry policy (#130)

* Add singleton http client
* Removed refresh token logic
* Further cleanup after refresh token
* Make tests faster maybe
This commit is contained in:
Adrian Calinescu
2020-05-18 20:34:57 +03:00
committed by GitHub
parent 3cf49c5d1c
commit 2c48d103f2
9 changed files with 753 additions and 344 deletions

View File

@@ -11,14 +11,14 @@ describe('Puppeteer', () => {
it('should grab GitHub page title', async () => {
browser = await puppeteer.launch({
headless: true,
args: ['--disable-dev-shm-usage']
args: ['--disable-dev-shm-usage', '--fast-start', '--no-sandbox']
});
page = await browser.newPage();
await page.goto("https://github.com/", { waitUntil: 'load' });
let pageTitle = await page.title();
assert.equal(true, pageTitle.includes('GitHub'));
await browser.close();
}).timeout(15000); // yeah, this may take a while...
}).timeout(25000); // yeah, this may take a while...
});
describe('Destreamer', () => {