mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added possible fix for random test timeouts
no issue Some tests timeout for an unknown reason. This commit adds some missing awaits for async test methods (that don't perform any async operation, but are marked as async).
This commit is contained in:
parent
438526641b
commit
da8cb5c078
6 changed files with 6 additions and 6 deletions
|
@ -13,7 +13,7 @@ describe('Newsletters Content API', function () {
|
|||
before(async function () {
|
||||
agent = await agentProvider.getContentAPIAgent();
|
||||
await fixtureManager.init('api_keys', 'newsletters');
|
||||
agent.authenticate();
|
||||
await agent.authenticate();
|
||||
});
|
||||
|
||||
it('Can request only active newsletters', async function () {
|
||||
|
|
|
@ -15,7 +15,7 @@ describe('Offers Content API', function () {
|
|||
before(async function () {
|
||||
agent = await agentProvider.getContentAPIAgent();
|
||||
await fixtureManager.init('api_keys', 'members');
|
||||
agent.authenticate();
|
||||
await agent.authenticate();
|
||||
});
|
||||
|
||||
it('Can read offer details from id', async function () {
|
||||
|
|
|
@ -19,7 +19,7 @@ describe('Pages Content API', function () {
|
|||
before(async function () {
|
||||
agent = await agentProvider.getContentAPIAgent();
|
||||
await fixtureManager.init('users:no-owner', 'user:inactive', 'posts', 'tags:extra', 'api_keys');
|
||||
agent.authenticate();
|
||||
await agent.authenticate();
|
||||
});
|
||||
|
||||
it('Can request pages', async function () {
|
||||
|
|
|
@ -28,7 +28,7 @@ describe('Posts Content API', function () {
|
|||
before(async function () {
|
||||
agent = await agentProvider.getContentAPIAgent();
|
||||
await fixtureManager.init('owner:post', 'users:no-owner', 'user:inactive', 'posts', 'tags:extra', 'api_keys', 'newsletters', 'members:newsletters');
|
||||
agent.authenticate();
|
||||
await agent.authenticate();
|
||||
|
||||
// Assign a newsletter to one of the posts
|
||||
const newsletterId = testUtils.DataGenerator.Content.newsletters[0].id;
|
||||
|
|
|
@ -11,7 +11,7 @@ describe('Settings Content API', function () {
|
|||
before(async function () {
|
||||
agent = await agentProvider.getContentAPIAgent();
|
||||
await fixtureManager.init('api_keys');
|
||||
agent.authenticate();
|
||||
await agent.authenticate();
|
||||
});
|
||||
|
||||
it('Can request settings', async function () {
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Tiers Content API', function () {
|
|||
before(async function () {
|
||||
agent = await agentProvider.getContentAPIAgent();
|
||||
await fixtureManager.init('members', 'api_keys', 'tiers:archived');
|
||||
agent.authenticate();
|
||||
await agent.authenticate();
|
||||
});
|
||||
|
||||
it('Can request only active tiers', async function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue