Skip to content

Commit

Permalink
fix: remove unneeded publish
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Feb 24, 2025
1 parent 3b3f380 commit 8e979e1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/integration/files/FilesRepository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,16 +747,10 @@ describe('FilesRepository', () => {
await uploadFileViaApi(restrictFileDatasetIds.numericId, testTextFile1Name).catch(() => {
throw new Error(`Tests beforeEach(): Error while uploading file ${testTextFile1Name}`)
})

await publishDatasetViaApi(restrictFileDatasetIds.numericId).catch(() => {
throw new Error('Error while publishing test Dataset')
})

await waitForNoLocks(restrictFileDatasetIds.numericId, 10)
})

afterEach(async () => {
await deletePublishedDatasetViaApi(restrictFileDatasetIds.persistentId)
await deleteUnpublishedDatasetViaApi(restrictFileDatasetIds.numericId)
})

test('should successfully restrict a file', async () => {
Expand Down

0 comments on commit 8e979e1

Please sign in to comment.