Skip to content

fix: Optimise sleep and wait functions in upgrade tests [DEV-5514] & Optimise sleep funtions in fee abs tests [DEV-5515]#942

Merged
Eengineer1 merged 2 commits into
mainfrom
kappa/optimize-tests
Nov 25, 2025
Merged

fix: Optimise sleep and wait functions in upgrade tests [DEV-5514] & Optimise sleep funtions in fee abs tests [DEV-5515]#942
Eengineer1 merged 2 commits into
mainfrom
kappa/optimize-tests

Conversation

@kaustubhkapatral
Copy link
Copy Markdown
Contributor

This PR optimizes sleep and WaitForChainHeight functions present in the upgrade and feeabs tests.

Note: During testing on a forked repo it was discovered that the docker localnet does not have a consistent behavior while creating and committing new blocks. Average block time ranged from 500ms to 2s across different CI runs. Due to this inconsistency the tests require a certain level of buffer time. Further reduction of sleep and WaitForChainHeight functions will lead to failed CI tests even if those pass locally.

@ankurdotb
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@Eengineer1 Eengineer1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Approved 👍.

@Eengineer1 Eengineer1 merged commit dc390de into main Nov 25, 2025
18 checks passed
@Eengineer1 Eengineer1 deleted the kappa/optimize-tests branch November 25, 2025 18:20
Eengineer1 added a commit that referenced this pull request Dec 4, 2025
* docs: Add v4-minor testnet upgrade binaries file (#936)

* docs: Add v4-minor upgrade binaries file

* Switch to v4.1.6 instead of beta release

* docs: Add mainnet v4-minor upgrade binaries file (#940)

* docs: Add v4-minor upgrade binaries file

* Switch to v4.1.6 instead of beta release

* Add mainnet v4-minor binaries

* fix:  Optimise sleep and wait functions in upgrade tests [DEV-5514] & Optimise sleep funtions in fee abs tests [DEV-5515] (#942)

* optimized sleep and wait functions in tests

* revert wait time

* split docker tag approach

* split docker tag approach

* switch to tag based approach

* fixed readable events slice

* fix panic due to negative tax amount

* Added failsafe assertion adjustment

* Increase decrement to counter jitter

---------

Co-authored-by: Filip Djokic <87134019+filipdjokic@users.noreply.github.com>
Co-authored-by: Tasos Derisiotis <50984242+Eengineer1@users.noreply.github.com>
Co-authored-by: Tasos Derisiotis <tasosderiziotis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants