Skip to content

Commit

Permalink
Add sleep to allow upload cleanup process to finish before delete
Browse files Browse the repository at this point in the history
This was causing test failures because my life is a nightmare.
  • Loading branch information
hobinjk-ptc committed Oct 11, 2023
1 parent 380bf46 commit 238b6dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/upload-target.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ test('target upload to /content/:objectName', async () => {
expect(xml).toBeTruthy();
expect(xml.length).toBe(157);

// Let the upload cleanup process finish before we delete
await sleep(1000);

const resDelete = await fetch('http://localhost:8080/', {
headers: {
'Content-type': 'application/x-www-form-urlencoded',
Expand Down

0 comments on commit 238b6dd

Please sign in to comment.