File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,13 @@ fn test_simple_signer() {
142
142
chunks. push ( chunk_event) ;
143
143
}
144
144
145
+ chunks. sort_by ( |ev1, ev2| {
146
+ ev1. modified_slots [ 0 ]
147
+ . slot_id
148
+ . partial_cmp ( & ev2. modified_slots [ 0 ] . slot_id )
149
+ . unwrap ( )
150
+ } ) ;
151
+
145
152
let thread_chunks = chunks. clone ( ) ;
146
153
147
154
// simulate a node that's trying to push data
@@ -177,13 +184,6 @@ fn test_simple_signer() {
177
184
sleep_ms ( 5000 ) ;
178
185
let accepted_events = running_signer. stop ( ) . unwrap ( ) ;
179
186
180
- chunks. sort_by ( |ev1, ev2| {
181
- ev1. modified_slots [ 0 ]
182
- . slot_id
183
- . partial_cmp ( & ev2. modified_slots [ 0 ] . slot_id )
184
- . unwrap ( )
185
- } ) ;
186
-
187
187
let sent_events: Vec < SignerEvent < SignerMessage > > = chunks
188
188
. iter ( )
189
189
. map ( |chunk| {
You can’t perform that action at this time.
0 commit comments