From b61e21e0798a911e505cab3c024731245c26a6f7 Mon Sep 17 00:00:00 2001 From: RealKindOne Date: Sun, 6 Jul 2025 23:02:10 -0400 Subject: [PATCH] Fix AwayNotify test. --- test/integration/tests/core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/tests/core.cpp b/test/integration/tests/core.cpp index 197ea6d3..6fd0f00a 100644 --- a/test/integration/tests/core.cpp +++ b/test/integration/tests/core.cpp @@ -292,6 +292,10 @@ TEST_F(ZNCTest, AwayNotify) { client.ReadUntil("CAP user NEW :away-notify"); client.Write("CAP REQ :away-notify"); client.ReadUntil("ACK :away-notify"); + // Fix for #1826 breaks this test. Join channel so this test does not fail. + client.Write(":nick JOIN #test"); + ircd.ReadUntil("JOIN #test"); + ircd.Write(":x!y@z JOIN #test"); ircd.Write(":x!y@z AWAY :reason"); client.ReadUntil(":x!y@z AWAY :reason"); ircd.Close();