test(registry): add unit tests for registry behavior
SonarQube Scan / SonarQube Trigger (push) Successful in 50s

This commit is contained in:
2026-01-21 23:52:41 +07:00
parent cb8257b3db
commit c6d2e20d71
3 changed files with 633 additions and 4 deletions
-3
View File
@@ -111,9 +111,6 @@ func (r *registry) Update(user string, oldKey, newKey Key) error {
client.Slug().Set(newKey.Id)
r.slugIndex[newKey] = user
if r.byUser[user] == nil {
r.byUser[user] = make(map[Key]Session)
}
r.byUser[user][newKey] = client
return nil
}