From afd8eb4917266942465f66977f087f85ccd4c78b Mon Sep 17 00:00:00 2001 From: Marcin Czenko Date: Wed, 16 Oct 2024 22:34:45 +0200 Subject: [PATCH] use http RPC provider for clients in validation integration tests --- tests/integration/testvalidator.nim | 38 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/integration/testvalidator.nim b/tests/integration/testvalidator.nim index 2c658029..04be5bf5 100644 --- a/tests/integration/testvalidator.nim +++ b/tests/integration/testvalidator.nim @@ -24,18 +24,19 @@ marketplacesuite "Validation": clients: CodexConfigs.init(nodes=1) - # .debug() # uncomment to enable console log output + .withEthProvider("http://localhost:8545") + .debug() # uncomment to enable console log output # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log # .withLogTopics("node", "marketplace", "clock") - # .withLogTopics("node", "purchases", "slotqueue", "market") + .withLogTopics("node", "purchases", "slotqueue", "market") .some, providers: CodexConfigs.init(nodes=1) .withSimulateProofFailures(idx=0, failEveryNProofs=1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("marketplace", "sales", "reservations", "node", "clock", "slotsbuilder") + .debug() # uncomment to enable console log output + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("marketplace", "sales", "reservations", "node", "clock", "slotsbuilder") .some, validators: @@ -43,9 +44,9 @@ marketplacesuite "Validation": .withValidationGroups(groups = 2) .withValidationGroupIndex(idx = 0, groupIndex = 0) .withValidationGroupIndex(idx = 1, groupIndex = 1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("validator") # each topic as a separate string argument + .debug() # uncomment to enable console log output + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("validator") # each topic as a separate string argument .some ): let client0 = clients()[0].client @@ -100,18 +101,18 @@ marketplacesuite "Validation": clients: CodexConfigs.init(nodes=1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("node", "marketplace", "clock") - # .withLogTopics("node", "purchases", "slotqueue", "market") + .withEthProvider("http://localhost:8545") + .debug() # uncomment to enable console log output + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("node", "purchases", "slotqueue", "market") .some, providers: CodexConfigs.init(nodes=1) .withSimulateProofFailures(idx=0, failEveryNProofs=1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("marketplace", "sales", "reservations", "node", "clock", "slotsbuilder") + .debug() # uncomment to enable console log output + .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + .withLogTopics("marketplace", "sales", "reservations", "node", "clock", "slotsbuilder") .some ): let client0 = clients()[0].client @@ -152,10 +153,9 @@ marketplacesuite "Validation": .withValidationGroups(groups = 2) .withValidationGroupIndex(idx = 0, groupIndex = 0) .withValidationGroupIndex(idx = 1, groupIndex = 1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to: - # tests/integration/logs/ //_.log - # .withLogTopics("validator") # each topic as a separate string argument + .debug() # uncomment to enable console log output + .withLogFile() # uncomment to output log file to: # tests/integration/logs/ //_.log + .withLogTopics("validator") # each topic as a separate string argument failAndTeardownOnError "failed to start validator nodes": for config in validators.configs.mitems: