X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fover.t;h=1f2df7cf065a72a2a4a6e7368e5f53b54010f13d;hb=refs%2Fheads%2Fmaster;hp=56c20d01799ce7a244eaa82fc3abb13b524efebe;hpb=090238c3353438526dec707dad0718cb21efd07f;p=public-inbox.git diff --git a/t/over.t b/t/over.t index 56c20d01..1f2df7cf 100644 --- a/t/over.t +++ b/t/over.t @@ -1,4 +1,4 @@ -# Copyright (C) 2018-2020 all contributors +# Copyright (C) 2018-2021 all contributors # License: AGPL-3.0+ use strict; use warnings; @@ -90,8 +90,9 @@ $over->eidx_prep; 'example.kee:2018:deadbeefcafe' ], 'xref3 works forw two'); - @arg = qw(1349 adeadba7cafe example.key); - ok($over->remove_xref3(@arg), 'remove first'); + is($over->dbh->do(<<''), 1, 'remove first'); +DELETE FROM xref3 WHERE xnum = 2019 AND docid = 1349 + $xref3 = $over->get_xref3(1349); is_deeply($xref3, [ 'example.kee:2018:deadbeefcafe' ], 'confirm removal successful');