Closed SimonMacIntyre closed 3 months ago
Huh, not sure I understand the pipeline failure, the tests all worked on this locally 🤔 Anything I can do?
Totals | |
---|---|
Change from base Build 10167421293: | 0.0% |
Covered Lines: | 6160 |
Relevant Lines: | 6246 |
@SimonMacIntyre Looks like it was just flakey tests 👍🏻
Nice improvement here, thank you @SimonMacIntyre :)
Fix https://github.com/mochi-mqtt/server/issues/416
The reason I want to open this PR:
pk.Connect.ClientIdentifier
in clients.go, It also is the same value as the assignedClientId if there is one. Therefore it is more correct, but also for the reasons below:cl.ID
and override it and the assigned id returned to the client(I assign intentional, known, client ids to specific clients. We want to control the client ids based on the authenticating client.)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.