Skip to content

Commit

Permalink
Address other comments
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
  • Loading branch information
mirgee committed Oct 9, 2020
1 parent ae1976e commit cd2b8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libvcx/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,19 +301,19 @@ pub mod tests {
let institution_to_consumer = create_connection("consumer").unwrap();
let _my_public_did = settings::get_config_value(settings::CONFIG_INSTITUTION_DID).unwrap();
let details = connect(institution_to_consumer).unwrap().unwrap();
update_state(institution_to_consumer).unwrap();
// update_state(institution_to_consumer).unwrap();

::utils::devsetup::set_consumer(consumer_handle);
debug!("Consumer is going to accept connection invitation.");
let consumer_to_institution = create_connection_with_invite("institution", &details).unwrap();
connect(consumer_to_institution).unwrap();
update_state(consumer_to_institution).unwrap();
// assert_eq!(VcxStateType::VcxStateRequestReceived as u32, get_state(institution));

debug!("Institution is going to process connection request.");
::utils::devsetup::set_institution(institution_handle);
thread::sleep(Duration::from_millis(500));
update_state(institution_to_consumer).unwrap();
assert_eq!(VcxStateType::VcxStateRequestReceived as u32, get_state(institution_to_consumer));

debug!("Consumer is going to complete the connection protocol.");
::utils::devsetup::set_consumer(consumer_handle);
Expand Down

0 comments on commit cd2b8d2

Please sign in to comment.