Set delay based on ticks_per_slot to ensure the test makes it to a new block
This commit is contained in:
parent
b5d714eec7
commit
b5d7ac3ce3
|
@ -73,7 +73,7 @@ fn test_rpc_send_tx() {
|
||||||
"params": [signature],
|
"params": [signature],
|
||||||
});
|
});
|
||||||
|
|
||||||
for _ in 0..10 {
|
for _ in 0..solana_sdk::timing::DEFAULT_TICKS_PER_SLOT {
|
||||||
let mut response = client
|
let mut response = client
|
||||||
.post(&rpc_string)
|
.post(&rpc_string)
|
||||||
.header(CONTENT_TYPE, "application/json")
|
.header(CONTENT_TYPE, "application/json")
|
||||||
|
|
Loading…
Reference in New Issue