Skip to content

Commit

Permalink
up waiter defaults some more
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-james committed Jul 3, 2024
1 parent 4ede889 commit 13a59b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test-support/java/com/lmax/solana4j/SolanaNodeDsl.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void airdrop(final String... args)
final Sol sol = new Sol(params.valueAsBigDecimal("amountSol"));

final String transactionSignature = solanaDriver.requestAirdrop(address, sol.lamports());
new Waiter().withRetrys(15).withMaximumBackoff(Duration.ofSeconds(30)).waitFor(new IsNotNullAssertion<>(() -> solanaDriver.getTransactionResponse(transactionSignature).getTransaction()));
new Waiter().withRetrys(15).withMaximumBackoff(Duration.ofSeconds(60)).waitFor(new IsNotNullAssertion<>(() -> solanaDriver.getTransactionResponse(transactionSignature).getTransaction()));
}

public void retrieveAddressLookupTable(final String... args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Waiter
private static final Random RANDOM = new Random();

private int retrys = 10;
private Duration maximumBackoff = Duration.ofSeconds(10);
private Duration maximumBackoff = Duration.ofSeconds(30);
private Duration initialDelay = Duration.ofSeconds(1);

public <T> T waitFor(final Assertion<T> assertion)
Expand Down

0 comments on commit 13a59b2

Please sign in to comment.