user/dev discussion of public-inbox itself
 help / color / Atom feed
* [PATCH] t/perf-nntpd.t: update for RFC 5536 sec 3.2.14 compliance
@ 2018-12-25 11:12 Eric Wong
  0 siblings, 0 replies; 1+ messages in thread
From: Eric Wong @ 2018-12-25 11:12 UTC (permalink / raw)
  To: meta

This performance test doesn't normally get run...

Fixes: dd7049951c052c54 ("Put the NNTP server name into Xref lines")
---
 t/perf-nntpd.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/perf-nntpd.t b/t/perf-nntpd.t
index e502153..f7890d1 100644
--- a/t/perf-nntpd.t
+++ b/t/perf-nntpd.t
@@ -78,7 +78,7 @@ if (($ENV{NNTP_TEST_URL} || '') =~ m!\Anntp://([^/]+)/([^/]+)\z!) {
 $s = IO::Socket::INET->new(%opts);
 $s->autoflush(1);
 my $buf = $s->getline;
-is($buf, "201 server ready - post via email\r\n", 'got greeting');
+like($buf, qr/\A201 .* ready - post via email\r\n/s, 'got greeting');
 
 my $t = timeit(10, sub {
 	ok($s->print("GROUP $group\r\n"), 'changed group');
-- 
EW


^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-25 11:12 [PATCH] t/perf-nntpd.t: update for RFC 5536 sec 3.2.14 compliance Eric Wong

user/dev discussion of public-inbox itself

Archives are clonable:
	git clone --mirror https://public-inbox.org/meta
	git clone --mirror http://czquwvybam4bgbro.onion/meta
	git clone --mirror http://hjrcffqmbrq6wope.onion/meta
	git clone --mirror http://ou63pmih66umazou.onion/meta

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.mail.public-inbox.meta
	nntp://ou63pmih66umazou.onion/inbox.comp.mail.public-inbox.meta
	nntp://czquwvybam4bgbro.onion/inbox.comp.mail.public-inbox.meta
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.mail.public-inbox.meta
	nntp://news.gmane.org/gmane.mail.public-inbox.general

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox