about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-22 08:37:36 +0000
committerEric Wong <e@80x24.org>2021-07-22 19:08:55 +0000
commit0474105ebaa5a55bc5ed3964ee7a92de4bee4b2b (patch)
tree88063e6a3d8b29d203419b575c2b3fb6bb7c7b75
parenta1539672716f91acc67397a1a7d16e99df068931 (diff)
downloadpublic-inbox-master.tar.gz
I hit a test failure here, but haven't been able to reproduce
it...
-rw-r--r--t/solver_git.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/solver_git.t b/t/solver_git.t
index 13e478b3..fe1aff0b 100644
--- a/t/solver_git.t
+++ b/t/solver_git.t
@@ -84,7 +84,7 @@ index 15ac20eb..771486c4
 @@ -1,13 +1,12 @@
  #!perl -w
 EOM
-        ok(index($lei_out, $exp) >= 0,
+        like($lei_out, qr/\Q$exp\E/,
                 'preserve mode, regen header + context from -U0 patch');
         my $e = { GIT_DIR => "$ENV{HOME}/.local/share/lei/store/ALL.git" };
         my @x = xqx([qw(git cat-file --batch-all-objects --batch-check)], $e);