File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/protocol/libp2p/kademlia Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -951,9 +951,8 @@ mod tests {
951
951
let action = QueryAction :: GetRecordQueryDone { query_id, records } ;
952
952
assert ! ( kademlia. on_query_action( action) . await . is_ok( ) ) ;
953
953
954
- // Check the local storage was updated.
955
- let record = kademlia. store . get ( & key) . unwrap ( ) ;
956
- assert_eq ! ( record. value, vec![ 0x1 ] ) ;
954
+ // Check the local storage should not get updated updated.
955
+ assert ! ( kademlia. store. get( & key) . is_none( ) ) ;
957
956
}
958
957
959
958
#[ tokio:: test]
@@ -992,8 +991,7 @@ mod tests {
992
991
let action = QueryAction :: GetRecordQueryDone { query_id, records } ;
993
992
assert ! ( kademlia. on_query_action( action) . await . is_ok( ) ) ;
994
993
995
- // Check the local storage was updated.
996
- let record = kademlia. store . get ( & key) . unwrap ( ) ;
997
- assert_eq ! ( record. value, vec![ 0x2 ] ) ;
994
+ // Check the local storage should not get updated updated.
995
+ assert ! ( kademlia. store. get( & key) . is_none( ) ) ;
998
996
}
999
997
}
You can’t perform that action at this time.
0 commit comments