@@ -72,7 +72,7 @@ describe('DatasetsRepository', () => {
7272
7373 const createCollection = async ( ) => {
7474 try {
75- await createCollectionViaApi ( )
75+ await createCollectionViaApi ( TestConstants . TEST_CREATED_COLLECTION_ALIAS_1 )
7676 } catch ( error ) {
7777 throw new Error ( 'Tests beforeAll(): Error while creating test collection' )
7878 }
@@ -82,22 +82,25 @@ describe('DatasetsRepository', () => {
8282 try {
8383 firstDatasetIds = await createDataset . execute (
8484 TestConstants . TEST_NEW_DATASET_DTO ,
85- TestConstants . TEST_CREATED_COLLECTION_ALIAS
85+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
8686 )
8787 secondDatasetIds = await createDataset . execute (
8888 TestConstants . TEST_NEW_DATASET_DTO ,
89- TestConstants . TEST_CREATED_COLLECTION_ALIAS
89+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
9090 )
9191 thirdDatasetIds = await createDataset . execute (
9292 TestConstants . TEST_NEW_DATASET_DTO ,
93- TestConstants . TEST_CREATED_COLLECTION_ALIAS
93+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
9494 )
9595 fourthDatasetIds = await createDataset . execute (
9696 TestConstants . TEST_NEW_DATASET_DTO ,
97- TestConstants . TEST_CREATED_COLLECTION_ALIAS
97+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
9898 )
9999
100- await waitForDatasetsIndexedInSolr ( expectedTotalDatasetCount )
100+ await waitForDatasetsIndexedInSolr (
101+ expectedTotalDatasetCount ,
102+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
103+ )
101104 } catch ( error ) {
102105 throw new Error ( 'Tests beforeAll(): Error while creating test datasets' )
103106 }
@@ -116,7 +119,7 @@ describe('DatasetsRepository', () => {
116119
117120 const deleteCollection = async ( ) => {
118121 try {
119- await deleteCollectionViaApi ( )
122+ await deleteCollectionViaApi ( TestConstants . TEST_CREATED_COLLECTION_ALIAS_1 )
120123 } catch ( error ) {
121124 throw new Error ( 'Tests afterAll(): Error while deleting test collection' )
122125 }
@@ -126,7 +129,7 @@ describe('DatasetsRepository', () => {
126129 const actual : DatasetPreviewSubset = await sut . getAllDatasetPreviews (
127130 undefined ,
128131 undefined ,
129- TestConstants . TEST_CREATED_COLLECTION_ALIAS
132+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
130133 )
131134 expect ( actual . datasetPreviews . length ) . toEqual ( expectedTotalDatasetCount )
132135 expect ( actual . datasetPreviews [ 0 ] . persistentId ) . toMatch ( fourthDatasetIds . persistentId )
@@ -137,7 +140,7 @@ describe('DatasetsRepository', () => {
137140 const actual = await sut . getAllDatasetPreviews (
138141 testPageLimit ,
139142 0 ,
140- TestConstants . TEST_CREATED_COLLECTION_ALIAS
143+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
141144 )
142145 expect ( actual . datasetPreviews . length ) . toEqual ( 1 )
143146 expect ( actual . datasetPreviews [ 0 ] . persistentId ) . toMatch ( fourthDatasetIds . persistentId )
@@ -148,7 +151,7 @@ describe('DatasetsRepository', () => {
148151 const actual = await sut . getAllDatasetPreviews (
149152 testPageLimit ,
150153 1 ,
151- TestConstants . TEST_CREATED_COLLECTION_ALIAS
154+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
152155 )
153156 expect ( actual . datasetPreviews . length ) . toEqual ( 1 )
154157 expect ( actual . datasetPreviews [ 0 ] . persistentId ) . toMatch ( thirdDatasetIds . persistentId )
@@ -159,7 +162,7 @@ describe('DatasetsRepository', () => {
159162 const actual = await sut . getAllDatasetPreviews (
160163 testPageLimit ,
161164 2 ,
162- TestConstants . TEST_CREATED_COLLECTION_ALIAS
165+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
163166 )
164167 expect ( actual . datasetPreviews . length ) . toEqual ( 1 )
165168 expect ( actual . datasetPreviews [ 0 ] . persistentId ) . toMatch ( secondDatasetIds . persistentId )
@@ -170,7 +173,7 @@ describe('DatasetsRepository', () => {
170173 const actual = await sut . getAllDatasetPreviews (
171174 testPageLimit ,
172175 3 ,
173- TestConstants . TEST_CREATED_COLLECTION_ALIAS
176+ TestConstants . TEST_CREATED_COLLECTION_ALIAS_1
174177 )
175178 expect ( actual . datasetPreviews . length ) . toEqual ( 1 )
176179 expect ( actual . datasetPreviews [ 0 ] . persistentId ) . toMatch ( firstDatasetIds . persistentId )
0 commit comments