• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger / fabric-x-committer / 24032798069
92%

Build:
DEFAULT BRANCH: main
Ran 06 Apr 2026 01:07PM UTC
Jobs 2
Files 129
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Apr 2026 01:01PM UTC coverage: 91.594% (+0.1%) from 91.483%
24032798069

push

github

web-flow
[mock] fix flaky TestOrderer by making CutBlock synchronous (#504)

#### Type of change

- Test update
 
#### Description

Root cause: The inEnvs channel is buffered, so SubmitEnv returns
immediately without the Run goroutine having processed the envelope.
When CutBlock (unbuffered) is called next, Go's select may pick the
cutBlock case before the inEnvs case, causing sendBlockData to operate
on empty data — no block is created and the test hangs.

Fix: Make CutBlock synchronous using a Ready channel so it blocks until
the cut completes. The cutBlock handler drains all buffered envelopes
before cutting, and since CutBlock now blocks the caller, no new
envelopes can be submitted during the drain.

#### Related issues

 - resolves #502

Signed-off-by: Senthilnathan <cendhu@gmail.com>

19 of 21 new or added lines in 1 file covered. (90.48%)

31 existing lines in 7 files now uncovered.

10025 of 10945 relevant lines covered (91.59%)

42430.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
90.77
-0.84% mock/orderer.go

Coverage Regressions

Lines Coverage ∆ File
18
76.4
-2.22% utils/connection/server_util.go
3
95.83
-2.5% mock/coordinator.go
3
82.61
-13.04% service/query/lock_free.go
2
90.77
-0.84% mock/orderer.go
2
94.67
-0.82% service/coordinator/coordinator.go
2
85.76
-0.68% service/query/batcher.go
1
80.33
-1.64% utils/utils.go
Jobs
ID Job ID Ran Files Coverage
1 db-test - 24032798069.1 06 Apr 2026 01:07PM UTC 129
84.59
GitHub Action Run
2 unit-test - 24032798069.2 06 Apr 2026 01:07PM UTC 82
76.01
GitHub Action Run
Source Files on build 24032798069
  • Tree
  • List 129
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0bc80572 on github
  • Prev Build on main (#24031953815)
  • Next Build on main (#24032985900)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc