register: Update error name to COMPLETE_CONNECTION_REQUIRED to follow the spec

This commit is contained in:
Valentin Lorentz 2021-02-28 23:30:56 +01:00
parent 3f231403ba
commit 3c2db1531a

View File

@ -48,7 +48,8 @@ class TestRegisterBeforeConnectDisallowed(cases.BaseServerTestCase):
msgs = self.getMessages("bar")
fail_response = [msg for msg in msgs if msg.command == "FAIL"][0]
self.assertMessageMatch(
fail_response, params=["REGISTER", "DISALLOWED", ANYSTR]
fail_response,
params=["REGISTER", "COMPLETE_CONNECTION_REQUIRED", ANYSTR, ANYSTR],
)