Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Кирилл committed Nov 10, 2023
1 parent d1f5a0d commit ab64348
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ class GenericRpcConnector(
head = when (connectorType) {
RPC_ONLY -> {
log.warn("Setting up connector for $id upstream with RPC-only access, less effective than WS+RPC")
GenericRpcHead(getIngressReader(), forkChoice, id, blockValidator, headScheduler, chainSpecific, expectedBlockTime)
GenericRpcHead(
getIngressReader(),
forkChoice,
id,
blockValidator,
headScheduler,
chainSpecific,
expectedBlockTime.coerceAtLeast(Duration.ofSeconds(1))
)
}

WS_ONLY -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class GenericConnectorFactoryCreatorTest {
fun data(): List<Arguments> = chainsConfigReader.read(null)
.flatMap { cfg ->
cfg.shortNames.map {
Arguments.of(cfg.expectedBlockTime, cfg)
Arguments.of(cfg.expectedBlockTime.coerceAtLeast(Duration.ofSeconds(1)), cfg)
}
}
}
Expand Down

0 comments on commit ab64348

Please sign in to comment.