From 68669d6f95cbb998397b5003ef6a6a6a3c96c7c4 Mon Sep 17 00:00:00 2001 From: Matthias Fasching <5011972+fasmat@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:59:26 +0000 Subject: [PATCH] Deflake tests by giving nipost builder more time in tests (#5101) ## Motivation Closes #5060 Deflakes `TestValidator_Validate` and `TestNIPostBuilderWithClients` ## Changes - Extend timeouts to avoid tests failing because of them ## Test Plan n/a ## TODO - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed --- activation/nipost_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/activation/nipost_test.go b/activation/nipost_test.go index a887044984..a56185f7c2 100644 --- a/activation/nipost_test.go +++ b/activation/nipost_test.go @@ -194,11 +194,11 @@ func buildNIPost(tb testing.TB, postProvider *testPostManager, nipostChallenge t epoch := layersPerEpoch * layerDuration poetCfg := PoetConfig{ - PhaseShift: epoch / 5, - CycleGap: epoch / 10, - GracePeriod: epoch / 10, - RequestTimeout: epoch / 10, - RequestRetryDelay: epoch / 100, + PhaseShift: epoch / 2, + CycleGap: epoch / 5, + GracePeriod: epoch / 5, + RequestTimeout: epoch / 5, + RequestRetryDelay: epoch / 50, MaxRequestRetries: 10, }