Skip to content

[deliver] Fix flaky TestBroadcastDeliver#116

Merged
cendhu merged 1 commit into
hyperledger:mainfrom
liran-funaro:flaky-deliver-test
Sep 10, 2025
Merged

[deliver] Fix flaky TestBroadcastDeliver#116
cendhu merged 1 commit into
hyperledger:mainfrom
liran-funaro:flaky-deliver-test

Conversation

@liran-funaro

Copy link
Copy Markdown
Contributor

Type of change

  • Test update

Description

  • Add waitUntilGrpcServerIsDown() to ensure a server is down before testing
  • Create new stream for each test case to prevent GRPC from using a cached connection state

Related issues

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

@cendhu cendhu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@cendhu cendhu merged commit e3ec30f into hyperledger:main Sep 10, 2025
12 checks passed
@liran-funaro liran-funaro deleted the flaky-deliver-test branch September 10, 2025 13:09
cendhu added a commit to cendhu/fabric-x-committer that referenced this pull request May 27, 2026
- Update fabric-x-common to commit 855f12b which fixes the
  FileLedger.Iterator underflow on empty ledger (PR hyperledger#116)
- Remove the newest-start override in getCursor since
  FileLedger.Iterator now handles SeekPosition_Newest correctly
  on an empty ledger
- Keep the stop guard for SeekPosition_Newest with height=0 since
  the stop number computation (height-1) remains in the committer

Companion: hyperledger/fabric-x-common#116

Signed-off-by: Senthilnathan <cendhu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[flaky test] TestBroadcastDeliver

2 participants