about summary refs log tree commit homepage
path: root/t/repobrowse_git_atom.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-15 22:35:18 +0000
committerEric Wong <e@80x24.org>2017-02-16 04:27:50 +0000
commitf6244586ba4f5a5e7575e1254be8c9bbe303fce9 (patch)
treed1a8dd757b632f8cff66e3878f7cfc01e6e2f12d /t/repobrowse_git_atom.t
parent993dc7a772b10deda15733c8e750d98bf4d27bd0 (diff)
downloadpublic-inbox-f6244586ba4f5a5e7575e1254be8c9bbe303fce9.tar.gz
Query strings make endpoint caching more difficult since
they're order-independent.  They are also more likely lost
or truncated inadvertantly when copy+pasting, so try to
avoid them for default endpoints.

There's still some things which are broken and followup
commits will be needed to fix them.
Diffstat (limited to 't/repobrowse_git_atom.t')
-rw-r--r--t/repobrowse_git_atom.t6
1 files changed, 1 insertions, 5 deletions
diff --git a/t/repobrowse_git_atom.t b/t/repobrowse_git_atom.t
index 1f8e95e3..6769bf9f 100644
--- a/t/repobrowse_git_atom.t
+++ b/t/repobrowse_git_atom.t
@@ -23,11 +23,7 @@ test_psgi($test->{app}, sub {
         like($body, qr!<pre\s*[^>]+>\* header:\n  add header</pre>!,
                 'body wrapped in <pre>');
 
-        $res = $cb->(GET($req . '/'));
-        my $sl = dechunk($res);
-        is($body, $sl, 'slash returned identical to non-trailing slash');
-
-        $res = $cb->(GET($req . '/foo.txt'));
+        $res = $cb->(GET($req . '/master/foo.txt'));
         is($res->code, 200, 'got 200');
         $body = dechunk($res);
         like($body, qr{\bhref="http://[^/]+/test\.git/}, 'hrefs OK');