mochi-mqtt / server

The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub
MIT License
1.29k stars 222 forks source link

use cl.ID instead of pk.Connect.ClientIdentifier when looking for existing clients in inheritClientSession #417

Closed SimonMacIntyre closed 3 months ago

SimonMacIntyre commented 4 months ago

Fix https://github.com/mochi-mqtt/server/issues/416

The reason I want to open this PR:

All tests still pass, including the existing client takeover tests.

@mochi-co Do you think the existing tests are good for this, or do we want some kind of regression test case? I was looking at the tests to add one but to be honest, it is a bit beyond my Go skill level at the moment.

SimonMacIntyre commented 4 months ago

Huh, not sure I understand the pipeline failure, the tests all worked on this locally 🤔 Anything I can do?

coveralls commented 4 months ago

Pull Request Test Coverage Report for Build 10167435003

Details


Totals Coverage Status
Change from base Build 10167421293: 0.0%
Covered Lines: 6160
Relevant Lines: 6246

💛 - Coveralls
mochi-co commented 4 months ago

@SimonMacIntyre Looks like it was just flakey tests 👍🏻

mochi-co commented 3 months ago

Nice improvement here, thank you @SimonMacIntyre :)