Skip to content

Commit e39bd56

Browse files
committed
add a few seconds - print duration
1 parent f951a19 commit e39bd56

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/edu/harvard/iq/dataverse/util/cache/CacheFactoryBeanTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ public void testAuthenticatedUserGettingRateLimited() throws InterruptedExceptio
173173
}
174174
}
175175
long endTime = System.currentTimeMillis();
176-
long durationMinutes = (endTime - startTime) / 60000L;
176+
System.out.println("Test loop took " + (endTime - startTime) + " ms");
177+
//Add a few seconds to account for time outside loop
178+
long durationMinutes = (6000 + endTime - startTime) / 60000L;
177179
// 120 calls/hr = 2 calls/min. Add any tokens that may have been added during the test run
178180
long expectedMax = 120 + (durationMinutes * 2);
179181

0 commit comments

Comments
 (0)