-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CCIP-5117] integration-tests/smoke/ccip: factor out fee test helpers #16496
Conversation
@@ -21,7 +21,7 @@ runner-test-matrix: | |||
runs_on: ubuntu-latest | |||
triggers: | |||
- PR Integration CCIP Tests | |||
test_cmd: cd integration-tests/smoke/ccip && go test ccip_fees_test.go -timeout 12m -test.parallel=2 -count=1 -json | |||
test_cmd: cd integration-tests/smoke/ccip && go test ccip_fees_test.go -timeout 20m -test.parallel=2 -count=1 -json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was taking really long on my PC but I think there's an issue w/ my PC. Anyway, doesn't hurt to bump, will revisit this once we drop round times significantly and make the tests faster.
assertExecution bool | ||
} | ||
|
||
func RunFeeTokenTestCase(tc FeeTokenTestCase) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is basically copy/paste of what was in ccip_fees_test.go, just made public and moved to deployment
so we can use it in CLD
blockNum, err := e.Chains[cfg.SourceChain].Confirm(tx) | ||
blockNum, err := deployment.ConfirmIfNoErrorWithABI(e.Chains[cfg.SourceChain], tx, router.RouterABI, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prints out revert reason, useful
src: sourceChain, | ||
env: tenv, | ||
tokenAmounts: []router.ClientEVMTokenAmount{ | ||
feestest.RunFeeTokenTestCase(feestest.NewFeeTokenTestCase( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No real changes here, just uses the new API.
|
Factor out the CCIP fees test cases and runners into a separate package so we can run the same test cases from CLD.
Requires
N/A
Supports
N/A