Skip to content

Commit 3a68a2f

Browse files
committed
address review comments
1 parent cdb63d4 commit 3a68a2f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public void testRetrieveMyDataAsJsonString() throws InterruptedException {
113113
// Test getting a list of collections that the user can add datasets to
114114
@Test
115115
public void testRetrieveMyDataCollections() throws InterruptedException {
116-
int rootCount = 1; // everyone has access to this dataverse
117116
List<Map<String, String>> items;
118117
Response createDataverseResponse;
119118
Response retrieveMyCollectionListResponse;
@@ -140,7 +139,7 @@ public void testRetrieveMyDataCollections() throws InterruptedException {
140139
// Get the base number of collections since it's not always 1 for root.
141140
// There may be others left from another test that everyone can access
142141
retrieveMyCollectionListResponse = UtilIT.retrieveMyCollectionList(User1ApiToken, null);
143-
rootCount = retrieveMyCollectionListResponse.getBody().jsonPath().getList("data.items").size();
142+
int rootCount = retrieveMyCollectionListResponse.getBody().jsonPath().getList("data.items").size();
144143

145144
// User1 creates 15 Dataverses and adds a role to each allowing User2 access
146145
List<String> dataverses = new ArrayList<>();

0 commit comments

Comments
 (0)