sensible time range for bot test

This commit is contained in:
benbierens 2024-04-01 14:08:30 +02:00
parent 2ab84e2a61
commit 6c4b9345cb
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace NethereumWorkflow.BlockUtils
{ {
var sw = Stopwatch.Begin(log, nameof(BlockTimeFinder)); var sw = Stopwatch.Begin(log, nameof(BlockTimeFinder));
var result = operation(); var result = operation();
sw.End($"(Cache size: {cache.Size})"); sw.End($"(Bounds: [{bounds.Genesis.BlockNumber}-{bounds.Current.BlockNumber}] Cache: {cache.Size})");
return result; return result;
} }

View File

@ -7,7 +7,7 @@ namespace CodexDiscordBotPlugin
public class RewarderBotContainerRecipe : ContainerRecipeFactory public class RewarderBotContainerRecipe : ContainerRecipeFactory
{ {
public override string AppName => "discordbot-rewarder"; 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) protected override void Initialize(StartupConfig startupConfig)
{ {

View File

@ -49,7 +49,7 @@ namespace CodexTests.BasicTests
discordBotHost: botContainer.GetInternalAddress(DiscordBotContainerRecipe.RewardsPort).Host, discordBotHost: botContainer.GetInternalAddress(DiscordBotContainerRecipe.RewardsPort).Host,
discordBotPort: botContainer.GetInternalAddress(DiscordBotContainerRecipe.RewardsPort).Port, discordBotPort: botContainer.GetInternalAddress(DiscordBotContainerRecipe.RewardsPort).Port,
interval: "60", interval: "60",
historyStartUtc: DateTime.UtcNow.AddHours(-1), historyStartUtc: GetTestRunTimeRange().From - TimeSpan.FromMinutes(3),
gethInfo: gethInfo, gethInfo: gethInfo,
dataPath: null dataPath: null
)); ));