Skip to content

Commit 0088e71

Browse files
committed
sort by other fields too if addresses are equal
1 parent db3c566 commit 0088e71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration_test/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1433,11 +1433,11 @@ fn test_get_zmq_notifications(cl: &Client) {
14331433

14341434
// it doesn't matter in which order Bitcoin Core returns the result,
14351435
// but checking it is easier if it has a known order
1436-
zmq_info.sort_by_key(|result| result.address);
1436+
zmq_info.sort_by_key(|result| (result.address, result.notification_type, result.hwm));
14371437

14381438
assert!(
14391439
zmq_info
1440-
== vec![
1440+
== [
14411441
GetZmqNotificationsResult {
14421442
notification_type: "pubrawblock".to_owned(),
14431443
address: "tcp://0.0.0.0:28332".to_owned(),

0 commit comments

Comments
 (0)