Skip to content

Commit

Permalink
Deflake tests by giving nipost builder more time in tests (#5101)
Browse files Browse the repository at this point in the history
## Motivation
Closes #5060

Deflakes `TestValidator_Validate` and `TestNIPostBuilderWithClients`

## Changes
- Extend timeouts to avoid tests failing because of them

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [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
  • Loading branch information
fasmat committed Sep 27, 2023
1 parent a1c74a0 commit 68669d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions activation/nipost_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 68669d6

Please sign in to comment.