Skip to content

Commit

Permalink
[Fix] Increase event polling retries in test (#1280)
Browse files Browse the repository at this point in the history
### Description

Increases the event polling timeout for the end-to-end tests. This
resolves the flakiness after the webhook event change went in.

### Context

Events take slightly longer to post now that we are additionally sending
the events to a channel.

### Testing

- `./gradlew test`

### Documentation

N/A

### Known limitations

N/A
  • Loading branch information
philipliu authored Mar 4, 2024
1 parent 58438be commit 00b50cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ open class Sep24End2EndTests : AbstractIntegrationTests(TestConfig()) {
txnId: String,
count: Int
): List<Sep24GetTransactionResponse>? {
var retries = 5
var retries = 30
var callbacks: List<Sep24GetTransactionResponse>? = null
while (retries > 0) {
callbacks = walletServerClient.getCallbacks(txnId, Sep24GetTransactionResponse::class.java)
Expand All @@ -286,7 +286,7 @@ open class Sep24End2EndTests : AbstractIntegrationTests(TestConfig()) {
txnId: String,
count: Int
): List<SendEventRequest>? {
var retries = 5
var retries = 30
var events: List<SendEventRequest>? = null
while (retries > 0) {
events = anchorReferenceServerClient.getEvents(txnId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ open class Sep31End2EndTests : AbstractIntegrationTests(TestConfig()) {
txnId: String,
count: Int
): List<Sep31GetTransactionResponse>? {
var retries = 5
var retries = 30
var callbacks: List<Sep31GetTransactionResponse>? = null
while (retries > 0) {
callbacks = walletServerClient.getCallbacks(txnId, Sep31GetTransactionResponse::class.java)
Expand All @@ -185,7 +185,7 @@ open class Sep31End2EndTests : AbstractIntegrationTests(TestConfig()) {
txnId: String,
count: Int
): List<SendEventRequest>? {
var retries = 5
var retries = 30
var events: List<SendEventRequest>? = null
while (retries > 0) {
events = anchorReferenceServerClient.getEvents(txnId)
Expand Down

0 comments on commit 00b50cf

Please sign in to comment.