Skip to content

Commit

Permalink
fix: add waitForNoLocks() for file ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Nov 6, 2023
1 parent f4d35df commit 6bda454
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ describe('File JSDataverse Repository', () => {
)
if (!dataset) throw new Error('Dataset not found')

await TestsUtils.wait(2500) // wait for the files to be ingested
await TestsUtils.waitForNoLocks(dataset.persistentId) // wait for the files to be ingested

const expectedTotalDownloadSize = await fileRepository
.getAllByDatasetPersistentId(dataset.persistentId, dataset.version)
Expand Down Expand Up @@ -710,7 +710,7 @@ describe('File JSDataverse Repository', () => {
)
if (!dataset) throw new Error('Dataset not found')

await TestsUtils.wait(2500) // wait for the files to be ingested
await TestsUtils.waitForNoLocks(dataset.persistentId) // wait for the files to be ingested

const expectedTotalDownloadSize = await fileRepository
.getAllByDatasetPersistentId(
Expand Down

0 comments on commit 6bda454

Please sign in to comment.