Add try catch around updating ready page status
This commit is contained in:
parent
e6ef0de71f
commit
0882fc245c
|
@ -46,7 +46,11 @@ beforeAll(async () => {
|
|||
}
|
||||
|
||||
// Update the ready page to prevent concurrent test runs
|
||||
await updateReadyPageStatus('draft');
|
||||
try {
|
||||
await updateReadyPageStatus('draft');
|
||||
} catch ( error ) {
|
||||
// Prevent an error here causing tests to fail.
|
||||
}
|
||||
|
||||
await trashExistingPosts();
|
||||
await withRestApi.deleteAllProducts();
|
||||
|
|
Loading…
Reference in New Issue