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:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user