Skip to content

test: timing integration tests#1158

Merged
nadir-akhtar merged 8 commits intotest/slashing-integration-testingfrom
nadir/timing-integration-tests
Feb 27, 2025
Merged

test: timing integration tests#1158
nadir-akhtar merged 8 commits intotest/slashing-integration-testingfrom
nadir/timing-integration-tests

Conversation

@nadir-akhtar
Copy link
Copy Markdown
Collaborator

@nadir-akhtar nadir-akhtar commented Feb 24, 2025

Motivation:

These tests cover scenarios that specifically validate correct behavior on the cusp of a delay completing.

Modifications:

This PR adds tests that perform a slash on the following critical timing scenarios:

  • Before/after a partial/total withdrawal is no longer slashable
  • Before/after an operator fully deallocates
  • Before/after an operator completes deregistration from an operator set
  • Before/after an operator completes an allocation

Result:

These timing tests ensure that the correct behavior happens on either side of critical delays

@nadir-akhtar nadir-akhtar changed the base branch from dev to test/slashing-integration-testing February 24, 2025 20:22
@ypatil12 ypatil12 added 🗡️ Slashing Release Changes for the slashing release. 🧪 Test Test-related changes (unit, integration, etc.). labels Feb 25, 2025
@0xClandestine 0xClandestine force-pushed the nadir/timing-integration-tests branch from 1588107 to 40ce5d1 Compare February 25, 2025 18:56
@nadir-akhtar nadir-akhtar force-pushed the nadir/timing-integration-tests branch 4 times, most recently from 9041e1e to 34bd2e2 Compare February 26, 2025 21:27
@nadir-akhtar nadir-akhtar marked this pull request as ready for review February 26, 2025 21:28
Copy link
Copy Markdown
Contributor

@ypatil12 ypatil12 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, couple minor comments

@nadir-akhtar nadir-akhtar force-pushed the nadir/timing-integration-tests branch from 34bd2e2 to 6bdbf08 Compare February 27, 2025 03:14
* Removes duplicative check checking for completed withdrawals
* Replaces deregistration logic with deallocation logic in deallocation tests
* Removes unnecessary recalculation from total withdrawal -> slash after delay test
@nadir-akhtar nadir-akhtar merged commit a15c202 into test/slashing-integration-testing Feb 27, 2025
10 checks passed
@nadir-akhtar nadir-akhtar deleted the nadir/timing-integration-tests branch February 27, 2025 03:58
ypatil12 pushed a commit that referenced this pull request Mar 5, 2025
**Motivation:**

These tests cover scenarios that specifically validate correct behavior
on the cusp of a delay completing.

**Modifications:**

This PR adds test that perform a slash on the following critical timing
scenarios:

* Before/after a partial/total withdrawal is no longer slashable
* Before/after an operator fully deallocates
* Before/after an operator completes deregistration from an operator set
* Before/after an operator completes an allocation

**Result:**

These timing tests ensure that the correct behavior happens on either
side of critical delays

---------

Co-authored-by: Michael <michael@Michaels-MacBook-Pro.local>
ypatil12 pushed a commit that referenced this pull request Mar 5, 2025
**Motivation:**

These tests cover scenarios that specifically validate correct behavior
on the cusp of a delay completing.

**Modifications:**

This PR adds test that perform a slash on the following critical timing
scenarios:

* Before/after a partial/total withdrawal is no longer slashable
* Before/after an operator fully deallocates
* Before/after an operator completes deregistration from an operator set
* Before/after an operator completes an allocation

**Result:**

These timing tests ensure that the correct behavior happens on either
side of critical delays

---------

Co-authored-by: Michael <michael@Michaels-MacBook-Pro.local>
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

Slashing Integration Testing for Competition Audit

**Modifications:**

***General State Validation***
- #1204
- #1198
- #1169
- #1158

***Upgrade Tests***
- #1187
- #1171
- #1143

***Dual Slash Tests***
- #1195
- #1153

***Rounding Tests***
- #1178

***EigenPod Tests***
- #1191
- #1188
- #1203
- #1194
- #1163

***Invariants***
- #1201
- #1176
- #1192
- #1197
- #1175
- #1189
- #1150
- #1149

**Result:**

Comprehensive Test Coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🗡️ Slashing Release Changes for the slashing release. 🧪 Test Test-related changes (unit, integration, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants