Skip to content

Commit

Permalink
Add wait in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Aug 30, 2024
1 parent 537bcaf commit f0babff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/test/content-layer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ describe('Content Layer', () => {
});
const refreshData = await refreshResponse.json();
assert.equal(refreshData.message, 'Content refreshed successfully');

await new Promise((r) => setTimeout(r, 1000));
const updatedJsonResponse = await fixture.fetch('/collections.json');
const updated = devalue.parse(await updatedJsonResponse.text());
assert.equal(updated.increment.data.lastValue, 2);
Expand Down

0 comments on commit f0babff

Please sign in to comment.