From 6c4b9345cb28515e0a02f4cdca0b0baf5da6960c Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 1 Apr 2024 14:08:30 +0200 Subject: [PATCH] sensible time range for bot test --- Framework/NethereumWorkflow/BlockUtils/BlockTimeFinder.cs | 2 +- .../CodexDiscordBotPlugin/RewarderBotContainerRecipe.cs | 2 +- Tests/CodexTests/BasicTests/MarketplaceTests.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Framework/NethereumWorkflow/BlockUtils/BlockTimeFinder.cs b/Framework/NethereumWorkflow/BlockUtils/BlockTimeFinder.cs index 3678cea..e4c73d5 100644 --- a/Framework/NethereumWorkflow/BlockUtils/BlockTimeFinder.cs +++ b/Framework/NethereumWorkflow/BlockUtils/BlockTimeFinder.cs @@ -40,7 +40,7 @@ namespace NethereumWorkflow.BlockUtils { var sw = Stopwatch.Begin(log, nameof(BlockTimeFinder)); var result = operation(); - sw.End($"(Cache size: {cache.Size})"); + sw.End($"(Bounds: [{bounds.Genesis.BlockNumber}-{bounds.Current.BlockNumber}] Cache: {cache.Size})"); return result; } diff --git a/ProjectPlugins/CodexDiscordBotPlugin/RewarderBotContainerRecipe.cs b/ProjectPlugins/CodexDiscordBotPlugin/RewarderBotContainerRecipe.cs index bfe15c5..3be2f7f 100644 --- a/ProjectPlugins/CodexDiscordBotPlugin/RewarderBotContainerRecipe.cs +++ b/ProjectPlugins/CodexDiscordBotPlugin/RewarderBotContainerRecipe.cs @@ -7,7 +7,7 @@ namespace CodexDiscordBotPlugin public class RewarderBotContainerRecipe : ContainerRecipeFactory { public override string AppName => "discordbot-rewarder"; - public override string Image => "codexstorage/codex-rewarderbot:sha-8c64352"; + public override string Image => "codexstorage/codex-rewarderbot:sha-2ab84e2"; protected override void Initialize(StartupConfig startupConfig) { diff --git a/Tests/CodexTests/BasicTests/MarketplaceTests.cs b/Tests/CodexTests/BasicTests/MarketplaceTests.cs index 1a54f14..c113ac1 100644 --- a/Tests/CodexTests/BasicTests/MarketplaceTests.cs +++ b/Tests/CodexTests/BasicTests/MarketplaceTests.cs @@ -49,7 +49,7 @@ namespace CodexTests.BasicTests discordBotHost: botContainer.GetInternalAddress(DiscordBotContainerRecipe.RewardsPort).Host, discordBotPort: botContainer.GetInternalAddress(DiscordBotContainerRecipe.RewardsPort).Port, interval: "60", - historyStartUtc: DateTime.UtcNow.AddHours(-1), + historyStartUtc: GetTestRunTimeRange().From - TimeSpan.FromMinutes(3), gethInfo: gethInfo, dataPath: null ));