@@ -37,10 +37,10 @@ fn test_membership_summary() -> anyhow::Result<()> {
37
37
} ;
38
38
39
39
let m = Membership :: < u64 , ( ) > :: new ( vec ! [ btreeset! { 1 , 2 } , btreeset! { 3 } ] , None ) ;
40
- assert_eq ! ( "voters:[{1:{()},2:{()}},{3:{()}}],learners:[]" , m. summary( ) ) ;
40
+ assert_eq ! ( "voters:[{1:{()},2:{()}},{3:{()}}], learners:[]" , m. summary( ) ) ;
41
41
42
42
let m = Membership :: < u64 , ( ) > :: new ( vec ! [ btreeset! { 1 , 2 } , btreeset! { 3 } ] , Some ( btreeset ! { 4 } ) ) ;
43
- assert_eq ! ( "voters:[{1:{()},2:{()}},{3:{()}}],learners:[4:{()}]" , m. summary( ) ) ;
43
+ assert_eq ! ( "voters:[{1:{()},2:{()}},{3:{()}}], learners:[4:{()}]" , m. summary( ) ) ;
44
44
45
45
let m = Membership :: < u64 , TestNode > :: new_unchecked ( vec ! [ btreeset! { 1 , 2 } , btreeset! { 3 } ] , btreemap ! {
46
46
1 =>node( "127.0.0.1" , "k1" ) ,
@@ -50,7 +50,7 @@ fn test_membership_summary() -> anyhow::Result<()> {
50
50
51
51
} ) ;
52
52
assert_eq ! (
53
- "voters:[{1:{TestNode { addr: \ " 127.0.0.1\ " , data: {\ " k1\ " : \ " k1\ " } }},2:{TestNode { addr: \ " 127.0.0.2\ " , data: {\ " k2\ " : \ " k2\ " } }}},{3:{TestNode { addr: \ " 127.0.0.3\ " , data: {\ " k3\ " : \ " k3\ " } }}}],learners:[4:{TestNode { addr: \ " 127.0.0.4\ " , data: {\ " k4\ " : \ " k4\ " } }}]" ,
53
+ r# "voters:[{1:{TestNode { addr: "127.0.0.1", data: {"k1": "k1"} }},2:{TestNode { addr: "127.0.0.2", data: {"k2": "k2"} }}},{3:{TestNode { addr: "127.0.0.3", data: {"k3": "k3"} }}}], learners:[4:{TestNode { addr: "127.0.0.4", data: {"k4": "k4"} }}]"# ,
54
54
m. summary( )
55
55
) ;
56
56
0 commit comments