listsockets: Fix 1970s date bug.

Fixes #1910
This commit is contained in:
RealKindOne committed 2026-10-01 15:26:10 -04:00
1 parent 1158f3bf58
commit bc25a36972
2 files changed
+25 -3

No files matched your search

+12
View File
@@ -1214,5 +1214,17 @@ TEST_F(ZNCTest, AwayStoreModule) {
// End 'away' bug test
}
// https://github.com/znc/znc/issues/1910
TEST_F(ZNCTest, ListSocketsModule) {
auto znc = Run();
auto ircd = ConnectIRCd();
auto client = LoginClient();
client.Write("znc loadmod listsockets");
client.ReadUntil("Loaded module");
client.Write("PRIVMSG *listsockets :list");
ASSERT_THAT(client.ReadRemainder().toStdString(),
Not(HasSubstr("1970-")));
}
} // namespace
} // namespace znc_inttest