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

nats-io / nats-server / 19606069249
83%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2025 05:52AM UTC
Jobs 1
Files 61
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

20 Nov 2025 05:46PM UTC coverage: 86.145% (+0.07%) from 86.074%
19606069249

push

github

web-flow
fix: ensure mqtt max_payload is enforced and tests are included (#7555)

Description:
- add `TestMQTTMaxPayloadEnforced` into `server/mqtt_test.go`, reuse
existing helpers.
- ensure oversized MQTT publish now fails the connection check instead
of silently being accepted.
- keep `max_payload` violation handling consistent with other protocols
and replicate the bug described in
https://github.com/nats-io/nats-server/issues/7439

Tests:
- `go test ./server -run TestMQTTMaxPayloadEnforced -count=1 -v`

Signed-off-by: orician <2018783812@qq.com>

75071 of 87145 relevant lines covered (86.14%)

343955.6 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.93
-0.46% src/github.com/nats-io/nats-server/server/util.go
2
87.23
-0.07% src/github.com/nats-io/nats-server/server/monitor.go
3
87.09
0.23% src/github.com/nats-io/nats-server/server/accounts.go
3
81.46
-0.02% src/github.com/nats-io/nats-server/server/opts.go
4
86.15
0.0% src/github.com/nats-io/nats-server/server/stream.go
4
95.73
-0.37% src/github.com/nats-io/nats-server/server/websocket.go
6
88.67
0.13% src/github.com/nats-io/nats-server/server/consumer.go
6
86.44
-0.05% src/github.com/nats-io/nats-server/server/events.go
7
93.54
-0.28% src/github.com/nats-io/nats-server/server/route.go
14
83.91
0.57% src/github.com/nats-io/nats-server/server/filestore.go
16
85.07
0.31% src/github.com/nats-io/nats-server/server/memstore.go
18
82.86
-0.06% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
22
87.14
-0.25% src/github.com/nats-io/nats-server/server/raft.go
23
73.31
-0.65% src/github.com/nats-io/nats-server/server/jetstream_api.go
Jobs
ID Job ID Ran Files Coverage
1 19606069249.1 23 Nov 2025 05:52AM UTC 61
86.14
GitHub Action Run
Source Files on build 19606069249
  • Tree
  • List 61
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19606069249
  • b3f0c265 on github
  • Prev Build on main (#19590471550)
  • Next Build on main (#19623684100)
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