Skip to content

Commit

Permalink
change order
Browse files Browse the repository at this point in the history
  • Loading branch information
chong-he committed May 26, 2024
1 parent 71cde60 commit 10ba9ca
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions beacon_node/http_api/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5252,30 +5252,30 @@ impl ApiTester {
.as_slice()
);

// Produce a BLS to execution change event
// Produce a voluntary exit event
self.client
.post_beacon_pool_bls_to_execution_changes(&[self.bls_to_execution_change.clone()])
.post_beacon_pool_voluntary_exits(&self.voluntary_exit)
.await
.unwrap();

let bls_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
let exit_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
assert_eq!(
bls_events.as_slice(),
&[EventKind::BlsToExecutionChange(Box::new(
self.bls_to_execution_change.clone()
))]
exit_events.as_slice(),
&[EventKind::VoluntaryExit(self.voluntary_exit.clone())]
);

// Produce a voluntary exit event
// Produce a BLS to execution change event
self.client
.post_beacon_pool_voluntary_exits(&self.voluntary_exit)
.post_beacon_pool_bls_to_execution_changes(&[self.bls_to_execution_change.clone()])
.await
.unwrap();

let exit_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
let bls_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
assert_eq!(
exit_events.as_slice(),
&[EventKind::VoluntaryExit(self.voluntary_exit.clone())]
bls_events.as_slice(),
&[EventKind::BlsToExecutionChange(Box::new(
self.bls_to_execution_change.clone()
))]
);

// Submit the next block, which is on an epoch boundary, so this will produce a finalized
Expand Down

0 comments on commit 10ba9ca

Please sign in to comment.