From 10ba9ca30d74c4feb7d88287b0e60f17ae0d1177 Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Sun, 26 May 2024 09:11:19 +0800 Subject: [PATCH] change order --- beacon_node/http_api/tests/tests.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/beacon_node/http_api/tests/tests.rs b/beacon_node/http_api/tests/tests.rs index 49646478f0..e85ecd5ef1 100644 --- a/beacon_node/http_api/tests/tests.rs +++ b/beacon_node/http_api/tests/tests.rs @@ -5252,6 +5252,18 @@ impl ApiTester { .as_slice() ); + // Produce a voluntary exit event + self.client + .post_beacon_pool_voluntary_exits(&self.voluntary_exit) + .await + .unwrap(); + + let exit_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await; + assert_eq!( + exit_events.as_slice(), + &[EventKind::VoluntaryExit(self.voluntary_exit.clone())] + ); + // Produce a BLS to execution change event self.client .post_beacon_pool_bls_to_execution_changes(&[self.bls_to_execution_change.clone()]) @@ -5266,18 +5278,6 @@ impl ApiTester { ))] ); - // Produce a voluntary exit event - self.client - .post_beacon_pool_voluntary_exits(&self.voluntary_exit) - .await - .unwrap(); - - let exit_events = poll_events(&mut events_future, 1, Duration::from_millis(10000)).await; - assert_eq!( - exit_events.as_slice(), - &[EventKind::VoluntaryExit(self.voluntary_exit.clone())] - ); - // Submit the next block, which is on an epoch boundary, so this will produce a finalized // checkpoint event, head event, and block event let block_root = self.next_block.signed_block().canonical_root();