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

nats-io / nats-server / 19623684100
83%

Build:
DEFAULT BRANCH: main
Ran 24 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.129% (-0.02%) from 86.145%
19623684100

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>

75057 of 87145 relevant lines covered (86.13%)

300383.3 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
72.46
-0.45% src/github.com/nats-io/nats-server/server/avl/seqset.go
2
98.52
-1.48% src/github.com/nats-io/nats-server/server/jetstream_versioning.go
2
81.48
0.02% src/github.com/nats-io/nats-server/server/opts.go
3
73.99
0.67% src/github.com/nats-io/nats-server/server/jetstream_api.go
4
83.92
0.01% src/github.com/nats-io/nats-server/server/filestore.go
4
86.18
0.03% src/github.com/nats-io/nats-server/server/stream.go
5
86.49
0.05% src/github.com/nats-io/nats-server/server/events.go
6
95.16
-0.13% src/github.com/nats-io/nats-server/server/client.go
6
94.25
-0.16% src/github.com/nats-io/nats-server/server/gateway.go
9
87.11
0.03% src/github.com/nats-io/nats-server/server/accounts.go
15
89.02
-0.37% src/github.com/nats-io/nats-server/server/mqtt.go
17
82.86
0.0% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
23
86.77
-0.37% src/github.com/nats-io/nats-server/server/raft.go
24
84.76
-0.31% src/github.com/nats-io/nats-server/server/memstore.go
25
88.26
-0.41% src/github.com/nats-io/nats-server/server/consumer.go
Jobs
ID Job ID Ran Files Coverage
1 19623684100.1 24 Nov 2025 05:52AM UTC 61
86.13
GitHub Action Run
Source Files on build 19623684100
  • Tree
  • List 61
  • Changed 19
  • Source Changed 0
  • Coverage Changed 19
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19623684100
  • b3f0c265 on github
  • Prev Build on main (#19606069249)
  • Next Build on main (#19658562439)
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