Skip to content

Commit

Permalink
xfail for irc2 and workaround for ngIRCd
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Sep 3, 2023
1 parent 5f8d3be commit 1534579
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irctest/server_tests/chmodes/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def testKeyValidation(self, key):
"ngIRCd does not validate channel keys: "
"https://github.com/ngircd/ngircd/issues/290"
)
if key == " " and self.controller.software_name == "irc2":
pytest.xfail("irc2 rewrites non-empty keys that contain only spaces")

self.connectClient("bar")
self.joinChannel(1, "#chan")
Expand Down
1 change: 1 addition & 0 deletions irctest/server_tests/connection_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def testNonutf8Realname(self):
else:
self.assertTrue(False, "stuck waiting")
self.sendLine(1, "WHOIS foo")
time.sleep(3) # for ngIRCd
d = self.clients[1].conn.recv(10000)
print("S -> 1 (repr): " + repr(d))
self.assertIn(b"username", d)
Expand Down
4 changes: 4 additions & 0 deletions irctest/server_tests/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def testPrivmsgNonexistentUser(self):
self.assertMessageMatch(msg, command="401", params=["foo", "bar", ANYSTR])

@cases.mark_specifications("RFC1459", "RFC2812", "Modern")
@cases.xfailIfSoftware(
["irc2"],
"replies with ERR_NEEDMOREPARAMS instead of ERR_NOTEXTTOSEND",
)
def testEmptyPrivmsg(self):
self.connectClient("foo")
self.sendLine(1, "JOIN #chan")
Expand Down

0 comments on commit 1534579

Please sign in to comment.