]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd.t
nntp: allow and ignore empty commands
[public-inbox.git] / t / nntpd.t
index 2815d8d641694073b2a62ee852735303c77c15ea..20191cb68a398b6c7822abe05901f3442dbb59a4 100644 (file)
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -122,6 +122,8 @@ EOF
        is($buf, "201 server ready - post via email\r\n", 'got greeting');
        $s->autoflush(1);
 
+       ok(syswrite($s, "   \r\n"), 'wrote spaces');
+       ok(syswrite($s, "\r\n"), 'wrote nothing');
        syswrite($s, "NEWGROUPS\t19990424 000000 \033GMT\007\r\n");
        is(0, sysread($s, $buf, 4096), 'GOT EOF on cntrl');