Skip to content

Commit cdb63d4

Browse files
committed
Fix DataRetrieverApiIT.testRetrieveMyDataCollections() for github migration
1 parent 7904e99 commit cdb63d4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/test/java/edu/harvard/iq/dataverse/api/DataRetrieverApiIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ public void testRetrieveMyDataCollections() throws InterruptedException {
137137
String User3Username = UtilIT.getUsernameFromResponse(createUserResponse);
138138
String User3ApiToken = UtilIT.getApiTokenFromResponse(createUserResponse);
139139

140+
// Get the base number of collections since it's not always 1 for root.
141+
// There may be others left from another test that everyone can access
142+
retrieveMyCollectionListResponse = UtilIT.retrieveMyCollectionList(User1ApiToken, null);
143+
rootCount = retrieveMyCollectionListResponse.getBody().jsonPath().getList("data.items").size();
144+
140145
// User1 creates 15 Dataverses and adds a role to each allowing User2 access
141146
List<String> dataverses = new ArrayList<>();
142147
int user1DataverseCount = 15;

0 commit comments

Comments
 (0)