Skip to content

Commit

Permalink
fix: removed code that is now in datasetHelper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Dec 19, 2023
1 parent b08f37f commit 302daff
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/integration/datasets/DatasetsRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,10 @@ describe('DatasetsRepository', () => {
});

await waitForNoLocks(createdDatasetId, 10)
let locks = await sut.getDatasetLocks(createdDatasetId);
const maxTries = 10;
let tries = 0;
while (locks.length > 0 && tries < maxTries) {
await new Promise(resolve => setTimeout(resolve, 1000));
locks = await sut.getDatasetLocks(createdDatasetId);
tries++
}
if (tries >= maxTries && locks.length > 0) {
assert.fail('Error while waiting for locks to be released');
}
.then()
.catch(() => {
assert.fail('Error while waiting for no locks');
});
await deaccessionDatasetViaApi(createdDatasetId,'1.0')
.then()
.catch((error) => {
Expand Down

0 comments on commit 302daff

Please sign in to comment.