diff options
author | Eric Wong <e@80x24.org> | 2019-06-24 02:52:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-24 05:26:26 +0000 |
commit | b70cf61f0c1f70621b88fe6420083a576d47f19f (patch) | |
tree | 88b4cd6fb40e983d7b9a536456067e42b7d890ba /t/nntpd.t | |
parent | 93fc0336d39ba3ef07b479877e64371f07c86eab (diff) | |
download | public-inbox-b70cf61f0c1f70621b88fe6420083a576d47f19f.tar.gz |
It kinda, barely works, and I'm most happy I got it working without any modifications to the main NNTP::event_step callback thanks to the DS->write(CODE) support we inherited from Danga::Socket.
Diffstat (limited to 't/nntpd.t')
-rw-r--r-- | t/nntpd.t | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -106,6 +106,8 @@ EOF is_deeply($list, { $group => [ qw(1 1 n) ] }, 'LIST works'); is_deeply([$n->group($group)], [ qw(0 1 1), $group ], 'GROUP works'); is_deeply($n->listgroup($group), [1], 'listgroup OK'); + ok(!$n->starttls, 'STARTTLS fails when unconfigured'); + is($n->code, 580, 'got 580 code on server w/o TLS'); %opts = ( PeerAddr => $host_port, |