File tree Expand file tree Collapse file tree
src/test/java/edu/harvard/iq/dataverse/api Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments