-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a test for mode changes correctly applying to users. #1732
Conversation
Test failures seem related to concurrency, again. |
@@ -226,7 +226,7 @@ export class RoomAccessSyncer { | |||
); | |||
if (matrixRooms.length === 0) { | |||
req.log.info("No mapped matrix rooms for IRC channel %s", channel); | |||
return; | |||
return BridgeRequestErr.ERR_NOT_MAPPED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the pattern of returning undefined vs an error enum appears elsewhere, I'm confident that this works, but where are these enum values handled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ultimately handled in
matrix-appservice-irc/src/bridge/IrcBridge.ts
Line 889 in 3e2dabe
factory.addDefaultResolveCallback((req, _res) => { |
* Add powerlevel e2e test * Log failures properly * Log when we don't know a mode value * Set sensible mode defaults * Remove mistaken log line * Remove consistent return lint rule * changelog * update changelog * Improve userPrefixes check * Catch failures to kill redis * Don't call quit twice * Remove duplicate test * Fix unit test * Disable passkey enc * sneaky fix to stop logging pong timeouts erronously * Remove comment * Drop console line * Review tweaks * Fix changelog * Add a loop to check all power levels * Add ability to check for the right PL * Don't wait for charlie's matrix membership
As well as adding some improved logging around the area.