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

fix: getMsgInfo returns an ErrNotFound when there are no rows #12680

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

virajbhartiya
Copy link
Member

Related Issues

Closes #12674

Proposed Changes

GetMsgInfo returns an ErrNotFound when there are no rows.

Checklist

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

@virajbhartiya virajbhartiya changed the title fix: GetMsgInfo returns an ErrNotFound when there are no rows fix: getMsgInfo returns an ErrNotFound when there are no rows Nov 7, 2024
@github-actions github-actions bot dismissed their stale review November 7, 2024 03:09

PR title now matches the required format.

Comment on lines +104 to +113
for {
mi, err = s.GetMsgInfo(ctx, msgCid)
if err == nil {
break
}
if ctx.Err() != nil {
t.Fatalf("timed out waiting for message to appear: %v", err)
}
time.Sleep(50 * time.Millisecond)
}
Copy link
Member

Choose a reason for hiding this comment

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

see require.Eventually() to do this with a bit more robustness

although, I'm not sure this test case adds much, what unique coverage are we adding with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ⌨️ In Progress
Development

Successfully merging this pull request may close these issues.

ChainIndexer: GetMsgInfo should return ErrNotFound when not found
2 participants