Skip to content

Commit b2f9354

Browse files
committed
Explicitly narrow number conversions
1 parent 5687257 commit b2f9354

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/org/labkey/test/BaseWebDriverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ Statement createFailOnTimeoutStatement(Statement statement, Class<?> testClass)
543543
else
544544
minutes = ClassTimeout.DEFAULT;
545545

546-
minutes *= timeoutMultiplier;
546+
minutes = Math.round(minutes * timeoutMultiplier);
547547

548548
if (minutes == 0)
549549
minutes = 1;

src/org/labkey/test/tests/SpecimenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ private void verifyRequestingLocationCounts(StudyLocationType... types)
825825
waitForElement(Locators.bodyTitle().withText("New Specimen Request"));
826826
int expectedLocationCount = StudyLocationType.untypedSites();
827827

828-
long additionalLocations = Math.round(Math.pow(2, StudyLocationType.values().length - 1));
828+
int additionalLocations = (int) Math.round(Math.pow(2, StudyLocationType.values().length - 1));
829829

830830
for (StudyLocationType type : StudyLocationType.values())
831831
{

0 commit comments

Comments
 (0)