Skip to content

Commit

Permalink
Fixed: getDatasetLocks integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Oct 20, 2023
1 parent a55d6fe commit 628d74f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/integration/datasets/DatasetsRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,17 @@ describe('DatasetsRepository', () => {

describe('getDatasetLocks', () => {
test('should return list of dataset locks by dataset id for a dataset while publishing', async () => {
let createdDatasetId = undefined;
// We create a new dataset
await createDatasetViaApi()
.then()
.then((response) => (createdDatasetId = response.data.data.id))
.catch(() => {
assert.fail('Error while creating test Dataset');
});
const createdDatasetId = 3;
// We publish the new test dataset so it will create a lock during publishing
await publishDatasetViaApi(createdDatasetId)
.then()
.catch((error) => {
console.log(error);
.catch(() => {
assert.fail('Error while publishing test Dataset');
});
const actual = await sut.getDatasetLocks(createdDatasetId);
Expand Down

0 comments on commit 628d74f

Please sign in to comment.