Set delay based on ticks_per_slot to ensure the test makes it to a new block

This commit is contained in:
Michael Vines 2019-02-27 09:58:03 -08:00 committed by Grimes
parent b5d714eec7
commit b5d7ac3ce3
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ fn test_rpc_send_tx() {
"params": [signature],
});
for _ in 0..10 {
for _ in 0..solana_sdk::timing::DEFAULT_TICKS_PER_SLOT {
let mut response = client
.post(&rpc_string)
.header(CONTENT_TYPE, "application/json")