mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
sort the chunk events in test_simple_signer
This commit is contained in:
@@ -141,7 +141,20 @@ fn test_simple_signer() {
|
||||
|
||||
let running_signer = signer.spawn(endpoint).unwrap();
|
||||
sleep_ms(5000);
|
||||
let accepted_events = running_signer.stop().unwrap();
|
||||
let mut accepted_events = running_signer.stop().unwrap();
|
||||
|
||||
chunks.sort_by(|ev1, ev2| {
|
||||
ev1.modified_slots[0]
|
||||
.slot_id
|
||||
.partial_cmp(&ev2.modified_slots[0].slot_id)
|
||||
.unwrap()
|
||||
});
|
||||
accepted_events.sort_by(|ev1, ev2| {
|
||||
ev1.modified_slots[0]
|
||||
.slot_id
|
||||
.partial_cmp(&ev2.modified_slots[0].slot_id)
|
||||
.unwrap()
|
||||
});
|
||||
|
||||
// runloop got the event that the mocked stacks node sent
|
||||
assert_eq!(accepted_events, chunks);
|
||||
|
||||
Reference in New Issue
Block a user