Skip to content

Test cases for AutomationRegistry and related contracts#30

Open
udityadav-supraoracles wants to merge 6 commits into
feature/evm_automationfrom
fix/test_cases
Open

Test cases for AutomationRegistry and related contracts#30
udityadav-supraoracles wants to merge 6 commits into
feature/evm_automationfrom
fix/test_cases

Conversation

@udityadav-supraoracles

@udityadav-supraoracles udityadav-supraoracles commented Jun 10, 2026

Copy link
Copy Markdown

This PR includes test cases for AutomationRegistry and other related contracts.

@udityadav-supraoracles udityadav-supraoracles marked this pull request as ready for review June 10, 2026 10:22
Comment on lines -476 to -477
if (_taskIndexes.length == 0) { return; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is this removed? Perhaps there might be some work required even when _taskIndexes.length==0 but are you sure this check is not needed? @udityadav-supraoracles

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Comment on lines -506 to -507
if (_taskIndexes.length == 0) { return; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same question @udityadav-supraoracles

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ICoreFacet(diamondAddr).processTasks(index, tasks);
}

/// @notice Test to ensure 'processTasks' reverts if tasks are processed out of order.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

order is based on priority here or task_index? @udityadav-supraoracles @aregng

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It is based on taskIndex.
if (expectedTask != _taskIndex) { revert ICoreFacet.OutOfOrderTaskProcessingRequest(); }

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