Skip to content

Commit 7877358

Browse files
committed
fix import
1 parent a153656 commit 7877358

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/collections/CollectionsRepository.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ import {
4141
deleteCollectionFeaturedItemsViaApi,
4242
deleteCollectionFeaturedItemViaApi
4343
} from '../../testHelpers/collections/collectionFeaturedItemsHelper'
44-
import { CollectionItemsFacet } from '../../../dist/collections/domain/models/CollectionItemSubset'
45-
44+
import { CollectionItemsFacet } from '../../../src/collections/domain/models/CollectionItemSubset'
4645
describe('CollectionsRepository', () => {
4746
const testCollectionAlias = 'collectionsRepositoryTestCollection'
4847
const sut: CollectionsRepository = new CollectionsRepository()
@@ -845,13 +844,15 @@ describe('CollectionsRepository', () => {
845844
afterAll(async () => {
846845
try {
847846
await deleteUnpublishedDatasetViaApi(testDatasetIds.numericId)
847+
console.log('Deleted dataset')
848848
} catch (error) {
849849
throw new Error(
850850
`Tests afterAll(): Error while deleting test dataset ${testDatasetIds.numericId}`
851851
)
852852
}
853853
try {
854854
await deleteCollectionViaApi(testSubCollectionAlias)
855+
console.log('Deleted collection')
855856
} catch (error) {
856857
throw new Error(
857858
`Tests afterAll(): Error while deleting subcollection ${testSubCollectionAlias}`
@@ -861,7 +862,7 @@ describe('CollectionsRepository', () => {
861862

862863
test('should return collection items given valid roleIds', async () => {
863864
// Give enough time to Solr for indexing
864-
await new Promise((resolve) => setTimeout(resolve, 15000))
865+
await new Promise((resolve) => setTimeout(resolve, 5000))
865866
// TODO: replace this with API call to get the role ids
866867
const roleIds = [1, 2, 3, 4, 5, 6, 7, 8]
867868
const publicationStatuses = [PublicationStatus.Draft, PublicationStatus.Unpublished]

0 commit comments

Comments
 (0)