Skip to content

Commit

Permalink
  • Loading branch information
b-yap committed Sep 22, 2023
1 parent e6441fc commit 9ffc104
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"port": 11625
},
"node_info": {
"ledger_version": 19,
"overlay_version": 28,
"ledger_version": 20,
"overlay_version": 30,
"overlay_min_version": 27,
"version_str": "stellar-core 19.12.0.rc2 (2109a168a895349f87b502ae3d182380b378fa47)",
"version_str": "stellar-core 20.0.0.rc1 (ecb24df104c2453a00fa5097d2e879d7731b9596)",
"is_pub_net": false
},
"stellar_history_archive_urls": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"port": 11625
},
"node_info": {
"ledger_version": 19,
"overlay_version": 28,
"ledger_version": 20,
"overlay_version": 30,
"overlay_min_version": 27,
"version_str": "stellar-core 19.12.0.rc2 (2109a168a895349f87b502ae3d182380b378fa47)",
"version_str": "stellar-core 20.0.0.rc1 (ecb24df104c2453a00fa5097d2e879d7731b9596)",
"is_pub_net": false
},
"stellar_history_archive_urls": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"port": 11625
},
"node_info": {
"ledger_version": 19,
"overlay_version": 28,
"ledger_version": 20,
"overlay_version": 30,
"overlay_min_version": 27,
"version_str": "stellar-core 19.12.0.rc2 (2109a168a895349f87b502ae3d182380b378fa47)",
"version_str": "stellar-core 20.0.0.rc1 (ecb24df104c2453a00fa5097d2e879d7731b9596)",
"is_pub_net": false
},
"stellar_history_archive_urls": []
Expand Down
5 changes: 4 additions & 1 deletion clients/stellar-relay-lib/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::{
};
use serial_test::serial;
use tokio::{sync::Mutex, time::timeout};
use tokio::time::sleep;

fn secret_key() -> String {
std::fs::read_to_string("./resources/secretkey/stellar_secretkey_testnet")
Expand Down Expand Up @@ -104,7 +105,7 @@ async fn stellar_overlay_should_receive_tx_set() {
let tx_set_vec = Arc::new(Mutex::new(vec![]));
let tx_set_vec_clone = tx_set_vec.clone();

timeout(Duration::from_secs(300), async move {
timeout(Duration::from_secs(500), async move {
let mut ov_conn_locked = ov_conn.lock().await;

while let Some(relay_message) = ov_conn_locked.listen().await {
Expand All @@ -118,6 +119,8 @@ async fn stellar_overlay_should_receive_tx_set() {
.send(StellarMessage::GetTxSet(txset_hash))
.await
.unwrap();
// let it sleep to wait for the `TxSet` message to appear
sleep(Duration::from_secs(5)).await;
},
StellarMessage::TxSet(set) => {
tx_set_vec_clone.lock().await.push(set);
Expand Down

0 comments on commit 9ffc104

Please sign in to comment.