about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-07-17 19:31:59 -0500
committerEric Wong <e@80x24.org>2018-07-18 10:24:01 +0000
commit29072fb327da93cff00ce4970e9c8de23ef0a618 (patch)
tree0e30d49b17ed1612df81b84fded28f715516e469 /t/v2writable.t
parenta69561501220d81743a3de143f2294f6ff5ce252 (diff)
downloadpublic-inbox-29072fb327da93cff00ce4970e9c8de23ef0a618.tar.gz
Now that some of the indexes are optionals these tests might fail
so teach them to fail more cleanly.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 9e3bb755..b3cdbd3e 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -125,7 +125,7 @@ if ('ensure git configs are correct') {
         my $mset2 = $srch->reopen->query('m:abcde@2', { mset => 1 });
         is($mset2->size, 1, 'message found by second MID');
         is((($mset1->items)[0])->get_docid, (($mset2->items)[0])->get_docid,
-                'same document');
+                'same document') if ($mset1->size);
 }
 
 SKIP: {