]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntp.t
search: {version} => {ibx_ver}
[public-inbox.git] / t / nntp.t
index 961b3d6af1e2da8b29aa3aec6cb1bb86e228d11a..24fe487c3fbec040e0978322194031b1483683dc 100644 (file)
--- a/t/nntp.t
+++ b/t/nntp.t
@@ -68,7 +68,7 @@ use_ok 'PublicInbox::Inbox';
                my ($date, $time, $gmt) = @_;
                my $m = join(' ', @_);
                my $ts = PublicInbox::NNTP::parse_time(@_);
-               my @t = gmtime($ts);
+               my @t = $gmt ? gmtime($ts) : localtime($ts);
                my ($d, $t) = split(' ', strftime('%Y%m%d %H%M%S', @t));
                if (length($date) != 8) { # Net::NNTP uses YYMMDD :<
                        $d =~ s/^[0-9]{2}//;
@@ -104,7 +104,7 @@ use_ok 'PublicInbox::Inbox';
                                        -primary_address => 'a@example.com',
                                        newsgroup => 'test',
                                        domain => 'example.com',
-                                       url => '//example.com/a'});
+                                       url => [ '//example.com/a' ]});
        is($ng->base_url, $u, 'URL expanded');
        my $mid = 'a@b';
        my $mime = Email::MIME->new("Message-ID: <$mid>\r\n\r\n");