diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index d45c6f2762..72f6661756 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -1352,6 +1352,7 @@ next.*", server.bitcoin_rpc_server.mine_blocks(1); + thread::sleep(Duration::from_millis(10)); server.index.update().unwrap(); assert_eq!( @@ -1366,6 +1367,9 @@ next.*", assert_eq!(info.transactions.len(), 2); assert_eq!(info.transactions[0].starting_block_count, 0); assert_eq!(info.transactions[1].starting_block_count, 1); + assert!( + info.transactions[1].starting_timestamp - info.transactions[0].starting_timestamp >= 10 + ); } #[test]