Skip to content

Commit 10ba9ca

Browse files
committed
change order
1 parent 71cde60 commit 10ba9ca

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

beacon_node/http_api/tests/tests.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,30 +5252,30 @@ impl ApiTester {
52525252
.as_slice()
52535253
);
52545254

5255-
// Produce a BLS to execution change event
5255+
// Produce a voluntary exit event
52565256
self.client
5257-
.post_beacon_pool_bls_to_execution_changes(&[self.bls_to_execution_change.clone()])
5257+
.post_beacon_pool_voluntary_exits(&self.voluntary_exit)
52585258
.await
52595259
.unwrap();
52605260

5261-
let bls_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
5261+
let exit_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
52625262
assert_eq!(
5263-
bls_events.as_slice(),
5264-
&[EventKind::BlsToExecutionChange(Box::new(
5265-
self.bls_to_execution_change.clone()
5266-
))]
5263+
exit_events.as_slice(),
5264+
&[EventKind::VoluntaryExit(self.voluntary_exit.clone())]
52675265
);
52685266

5269-
// Produce a voluntary exit event
5267+
// Produce a BLS to execution change event
52705268
self.client
5271-
.post_beacon_pool_voluntary_exits(&self.voluntary_exit)
5269+
.post_beacon_pool_bls_to_execution_changes(&[self.bls_to_execution_change.clone()])
52725270
.await
52735271
.unwrap();
52745272

5275-
let exit_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
5273+
let bls_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await;
52765274
assert_eq!(
5277-
exit_events.as_slice(),
5278-
&[EventKind::VoluntaryExit(self.voluntary_exit.clone())]
5275+
bls_events.as_slice(),
5276+
&[EventKind::BlsToExecutionChange(Box::new(
5277+
self.bls_to_execution_change.clone()
5278+
))]
52795279
);
52805280

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

0 commit comments

Comments
 (0)