Skip to content

fix: remove tech debt in solidity tests #739

Merged
shaspitz merged 6 commits intomainfrom
fix-solidity-tests
Jul 24, 2025
Merged

fix: remove tech debt in solidity tests #739
shaspitz merged 6 commits intomainfrom
fix-solidity-tests

Conversation

@shaspitz
Copy link
Copy Markdown
Contributor

@shaspitz shaspitz commented Jul 24, 2025

Updates our CI to use the latest stable version of forge, v1.2.3.. This is the default version that's now installed when using foundryup.

A lot of our tests were failing with the newest version of forge, so they're fixed in this PR. Notably, we had many tests that used the (deprecated) Fail_* prefix, which was caused them to silently fail, but look like a pass.

bidderRegistry.retrieveFunds(nextWindow, commitmentDigest, payable(provider), bidderRegistry.ONE_HUNDRED_PERCENT());
}

function testFail_shouldRetrieveFundsGreaterThanStake() public {
Copy link
Copy Markdown
Contributor Author

@shaspitz shaspitz Jul 24, 2025

Choose a reason for hiding this comment

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

This test was outdated, it's testing for a revert that no longer happens. See

bidAmt = availableAmount;

@shaspitz shaspitz force-pushed the fix-solidity-tests branch from 89512ef to 3008961 Compare July 24, 2025 19:55
Comment thread contracts/test/core/ProviderRegistryTest.sol
@shaspitz shaspitz marked this pull request as ready for review July 24, 2025 23:02
@kant777
Copy link
Copy Markdown
Contributor

kant777 commented Jul 24, 2025

LGTM!

@shaspitz shaspitz merged commit f68063f into main Jul 24, 2025
8 checks passed
@shaspitz shaspitz deleted the fix-solidity-tests branch July 24, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants