From ae74c666692f8056363c7adedd0edc4790439a8e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Jul 2021 00:43:32 +0000 Subject: lei_mail_sync: locations_for API uses oidbin for comparisons Favor oidbin use internally to reduce internal memory traffic. --- t/lei_mail_sync.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/lei_mail_sync.t b/t/lei_mail_sync.t index f0605092..a5e5f5d3 100644 --- a/t/lei_mail_sync.t +++ b/t/lei_mail_sync.t @@ -24,7 +24,7 @@ is_deeply([$ro->folders($imap)], [$imap], 'IMAP folder with full GLOB'); is_deeply([$ro->folders('imaps://bob@[::1]/INBOX')], [$imap], 'IMAP folder with partial GLOB'); -is_deeply($ro->locations_for('deadbeef'), +is_deeply($ro->locations_for("\xde\xad\xbe\xef"), { $imap => [ 1 ] }, 'locations_for w/ imap'); my $maildir = 'maildir:/home/user/md'; @@ -33,7 +33,7 @@ $lms->lms_begin; ok($lms->set_src('deadbeef', $maildir, \$fname), 'set Maildir once'); ok($lms->set_src('deadbeef', $maildir, \$fname) == 0, 'set Maildir again'); $lms->lms_commit; -is_deeply($ro->locations_for('deadbeef'), +is_deeply($ro->locations_for("\xde\xad\xbe\xef"), { $imap => [ 1 ], $maildir => [ $fname ] }, 'locations_for w/ maildir + imap'); -- cgit v1.2.3-24-ge0c7