Skip to content

Commit

Permalink
chore(sequencer): separate test utils from shared benchmark and test …
Browse files Browse the repository at this point in the history
…utils (#1613)

## Summary
Separated utils only used by tests from utils used by both benchmarks
and tests.

## Background
This is to get rid of many strings of nested `expect`s and `allow`s
mentioned in #1585

## Changes
- Separated `astria-sequencer::test_utils.rs` into `test_utils.rs` and
`benchmark_and_test_utils.rs`.
- Separated `astria-sequencer::app::test_utils.rs` into
`app::test_utils.rs` and `app::benchmark_and_test_utils.rs`.
- Fixed all the imports which broke as a result.

## Testing
All tests working

## Related Issues
closes #1585
  • Loading branch information
ethanoroshiba authored Oct 29, 2024
1 parent 52da5f2 commit d9913bb
Show file tree
Hide file tree
Showing 36 changed files with 714 additions and 717 deletions.
2 changes: 1 addition & 1 deletion crates/astria-sequencer/src/accounts/state_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ mod tests {
StateReadExt as _,
StateWriteExt as _,
},
test_utils::{
benchmark_and_test_utils::{
astria_address,
nria,
},
Expand Down
Loading

0 comments on commit d9913bb

Please sign in to comment.