This repository was archived by the owner on Feb 6, 2026. It is now read-only.
fix: integration test#96
Merged
Merged
Conversation
2441f6a to
3c53bb4
Compare
Signed-off-by: Joseph Livesey <joseph@semiotic.ai>
Signed-off-by: Joseph Livesey <joseph@semiotic.ai>
3c53bb4 to
a8a02f8
Compare
Signed-off-by: Joseph Livesey <joseph@semiotic.ai>
a8a02f8 to
4011c6e
Compare
suchapalaver
commented
Jun 12, 2025
| abi.encodeWithSignature( | ||
| "SignerStillThawing(uint256,uint256)", | ||
| block.number, | ||
| block.timestamp, |
Contributor
Author
There was a problem hiding this comment.
@tmigone I wanted to ask you about this change. Does this make sense? The script hadn't been part of CI and was written 2 years ago.
tmigone
approved these changes
Jun 12, 2025
Contributor
Author
|
Thanks @tmigone! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a hidden test bug discovered during local testing and prevents similar issues by adding integration tests to CI.
Fix Test Bug and Add Integration Testing to CI
🎯 Problem
While setting up local testing using the existing
scripts/integration_tests.sh, we discovered:testSignerStillThawing()was failing with a timestamp mismatch - the test was incorrectly usingblock.numberinstead ofblock.timestamp🔧 Solution
1. Fixed Test Bug
testSignerStillThawing()was failingSignerStillThawing(uint256,uint256)error with(block.number, thawEndTimestamp)(block.timestamp, thawEndTimestamp)- both are timestampsblock.timestampto match actual contract behavior2. Enhanced Integration Script Robustness
--broadcastflags andETHERSCAN_API_KEYhandling3. Added Integration Tests to CI
integration-testsjob runs after unit tests pass📝 Changes Made
Files Modified:
test/Escrow.t.sol- Fixed test to use correct timestamp parameterscripts/integration_tests.sh- Enhanced Node version management and deployment robustness.github/workflows/test.yml- Added integration test job to catch issues in CI