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

notary: fix "Condition never satisfied" in Notary test, fix #2422 #3337

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

roman-khimov
Copy link
Member

The theory is:

  • we add a block
  • it triggers notary
  • which can process the fallback before we're to setFinalizeWithError
  • it'll fail and require an additional block to enter, but it's never added
  • FAIL

The solution is:

  • always add an additional block, but treat the first fb specially

The theory is:
 * we add a block
 * it triggers notary
 * which can process the fallback before we're to setFinalizeWithError
 * it'll fail and require an additional block to enter, but it's never added
 * FAIL

The solution is:
 * always add an additional block, but treat the first fb specially

Signed-off-by: Roman Khimov <[email protected]>
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

It should help. LGTM.

pkg/services/notary/core_test.go Show resolved Hide resolved
It checks for any transaction given (like fb), not exactly the main one.

Signed-off-by: Roman Khimov <[email protected]>
@AnnaShaleva AnnaShaleva merged commit a256eac into master Mar 5, 2024
17 of 18 checks passed
@AnnaShaleva AnnaShaleva deleted the fix-notary-test branch March 5, 2024 16:12
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