test: Fix off-by-one in mockscheduler test RPC

This commit is contained in:
MarcoFalke
2021-05-14 12:52:15 +02:00
parent 61fea52171
commit fa2e614d16
2 changed files with 3 additions and 2 deletions

View File

@@ -424,7 +424,7 @@ static RPCHelpMan mockscheduler()
// check params are valid values
RPCTypeCheck(request.params, {UniValue::VNUM});
int64_t delta_seconds = request.params[0].get_int64();
if ((delta_seconds <= 0) || (delta_seconds > 3600)) {
if (delta_seconds <= 0 || delta_seconds > 3600) {
throw std::runtime_error("delta_time must be between 1 and 3600 seconds (1 hr)");
}