powertac/powertac-server — Issue #427: Intermittent test failure in household-customer
Author: jecollins
Created: 2011-11-14 16:11:59+00:00
State: open

This happens occasionally (perhaps one in ten times) when running tests:

Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 31.217 sec <<< FAILURE!
testEvaluatingTariffs(org.powertac.householdcustomer.HouseholdCustomerServiceTests) Time elapsed: 3.536 sec <<< ERROR!
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:250)
at org.powertac.householdcustomer.appliances.Dishwasher.dailyShifting(Dishwasher.java:216)
at org.powertac.householdcustomer.customers.Household.dailyShifting(Household.java:673)
at org.powertac.householdcustomer.customers.Village.dailyShifting(Village.java:770)