Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventually should connect because TxManager connection is async #1136

Closed
wants to merge 2 commits into from

Conversation

j16r
Copy link
Contributor

@j16r j16r commented Apr 25, 2019

No description provided.

@@ -40,7 +41,11 @@ func TestTxManager_CreateTx_Success(t *testing.T) {
})
assert.NoError(t, app.StartAndConnect())

gomega.NewGomegaWithT(t).Eventually(func() bool {
return manager.Connected()
}).Should(gomega.Equal(true))
require.True(t, manager.Connected())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you remove this line if you eventually assert it's true in the above line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting to find this to be an issue, I'm a bit surprised but it makes sense. Should we drop a comment suggesting a future more global fix, since this pattern exists in other tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was keeping that in to ensure the test aborts, did some testing and gomega does hard fail the test. So removing now.

@dimroc
Copy link
Contributor

dimroc commented Apr 26, 2019

After some discussion offline, we're waiting on further thought and discussion to see if this indeed fixes the elusive mandelbug issue.

@j16r j16r closed this Apr 29, 2019
@dimroc
Copy link
Contributor

dimroc commented Apr 29, 2019

Capturing for posterity's sake: https://awwapp.com/b/u5gledfmd/#

asoliman92 pushed a commit that referenced this pull request Aug 27, 2024
CCIP Config can go to larger size and any query from offchain components
via rpc call can cause timeout issues

add pagination to `getAllCCIPConfig` function which takes
- pageSize
- startIndex

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Makram Kamaleddine <[email protected]>
asoliman92 pushed a commit that referenced this pull request Aug 27, 2024
CCIP Config can go to larger size and any query from offchain components
via rpc call can cause timeout issues

add pagination to `getAllCCIPConfig` function which takes
- pageSize
- startIndex

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Makram Kamaleddine <[email protected]>
asoliman92 pushed a commit that referenced this pull request Aug 28, 2024
## Motivation
CCIP Config can go to larger size and any query from offchain components
via rpc call can cause timeout issues

## Solution
add pagination to `getAllCCIPConfig` function which takes 
- pageSize
- startIndex

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Makram Kamaleddine <[email protected]>
asoliman92 pushed a commit that referenced this pull request Aug 28, 2024
CCIP Config can go to larger size and any query from offchain components
via rpc call can cause timeout issues

add pagination to `getAllCCIPConfig` function which takes
- pageSize
- startIndex

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Makram Kamaleddine <[email protected]>
asoliman92 pushed a commit that referenced this pull request Aug 28, 2024
CCIP Config can go to larger size and any query from offchain components
via rpc call can cause timeout issues

add pagination to `getAllCCIPConfig` function which takes
- pageSize
- startIndex

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Makram Kamaleddine <[email protected]>
asoliman92 pushed a commit that referenced this pull request Aug 28, 2024
CCIP Config can go to larger size and any query from offchain components
via rpc call can cause timeout issues

add pagination to `getAllCCIPConfig` function which takes
- pageSize
- startIndex

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Co-authored-by: Makram Kamaleddine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants