solana: speed up test

This commit is contained in:
A5 Pickle 2024-01-23 08:26:27 -06:00
parent 6c6a41c03d
commit 63acedc0dc
No known key found for this signature in database
GPG Key ID: DD6C727938DE8E65
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,10 @@ startup_wait = 16000
[test.validator]
url = "https://api.devnet.solana.com"
### At 160 ticks/s, 64 ticks per slot implies that leader rotation and voting will happen
### every 400 ms. A fast voting cadence ensures faster finality and convergence
ticks_per_slot = 8
### Forked Wormhole Circle Integration Program
[[test.validator.clone]]
address = "wCCTPvsyeL9qYqbHTv3DUAyzEfYcyHoYw5c4mgcbBeW"

View File

@ -181,8 +181,8 @@ export async function loadProgramBpf(
);
// Sometimes the validator fails to fetch a blockhash after this buffer gets loaded, so we wait
// a bit to ensure that doesn't happen.
await new Promise((resolve) => setTimeout(resolve, 5000));
// a bit to ensure that doesn't happen. Uncomment this in if this is an issue.
//await new Promise((resolve) => setTimeout(resolve, 5000));
// Return the pubkey for the buffer (our new program implementation).
return buffer;