sensible time range for bot test
This commit is contained in:
parent
2ab84e2a61
commit
6c4b9345cb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue