diff --git a/crates/core/src/time.rs b/crates/core/src/time.rs index 328ae792d7..4bab05d392 100644 --- a/crates/core/src/time.rs +++ b/crates/core/src/time.rs @@ -154,7 +154,7 @@ impl Display for DateTimeUtc { } impl DateTimeUtc { - const FORMAT: &'static str = "%Y-%m-%dT%H:%M:%S%.6f+00:00"; + const FORMAT: &'static str = "%Y-%m-%dT%H:%M:%S%.9f+00:00"; /// Returns a DateTimeUtc which corresponds to the current date. pub fn now() -> Self { @@ -381,7 +381,7 @@ pub mod test_utils { //! Time related test utilities. /// Genesis time used during tests. - pub const GENESIS_TIME: &str = "2023-08-30T00:00:00.000000+00:00"; + pub const GENESIS_TIME: &str = "2023-08-30T00:00:00.000000000+00:00"; } #[cfg(test)] diff --git a/crates/tests/src/e2e/ibc_tests.rs b/crates/tests/src/e2e/ibc_tests.rs index 7bf2c8a571..4bb1c83965 100644 --- a/crates/tests/src/e2e/ibc_tests.rs +++ b/crates/tests/src/e2e/ibc_tests.rs @@ -1149,7 +1149,10 @@ fn make_consensus_state( ) -> Result { let header = query_header(test, height)?; let cs = TmConsensusState::from(header); - println!("DEBUG: consensus state with queried header: {cs:?}, at height {height}"); + println!( + "DEBUG: consensus state with queried header: {cs:?}, at height \ + {height}" + ); Ok(cs) } @@ -1206,6 +1209,10 @@ fn update_client( .fetch_light_block(height.into()) .expect("the light client couldn't get a light block"); + println!( + "DEBUG: target block header {:?}", + target_block.signed_header.header + ); let header = IbcTmHeader { signed_header: target_block.signed_header, validator_set: target_block.validators,