about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/lei-import-imap.t4
-rw-r--r--t/lei-import-maildir.t2
2 files changed, 3 insertions, 3 deletions
diff --git a/t/lei-import-imap.t b/t/lei-import-imap.t
index 3a1fff4c..fd15ef4f 100644
--- a/t/lei-import-imap.t
+++ b/t/lei-import-imap.t
@@ -54,8 +54,8 @@ test_lei({ tmpdir => $tmpdir }, sub {
         lei_ok('inspect', "blob:$out->[5]->{blob}");
         my $x = json_utf8->decode($lei_out);
         is(ref($x->{'lei/store'}), 'ARRAY', 'lei/store in inspect');
-        is(ref($x->{sync}), 'HASH', 'sync in inspect');
-        is(ref($x->{sync}->{$k[0]}), 'ARRAY', 'UID arrays in inspect');
+        is(ref($x->{'mail-sync'}), 'HASH', 'sync in inspect');
+        is(ref($x->{'mail-sync'}->{$k[0]}), 'ARRAY', 'UID arrays in inspect');
 
         my $psgi_attach = 'cfa3622cbeffc9bd6b0fc66c4d60d420ba74f60d';
         lei_ok('blob', $psgi_attach);
diff --git a/t/lei-import-maildir.t b/t/lei-import-maildir.t
index 02fe43e1..b85d3026 100644
--- a/t/lei-import-maildir.t
+++ b/t/lei-import-maildir.t
@@ -37,7 +37,7 @@ test_lei(sub {
         lei_ok('inspect', "blob:$res->[0]->{blob}");
         $inspect = json_utf8->decode($lei_out);
         is(ref(delete $inspect->{"lei/store"}), 'ARRAY', 'lei/store IDs');
-        is_deeply($inspect, { sync => { "maildir:$md" => [ 'x:2,S' ] } },
+        is_deeply($inspect, { 'mail-sync' => { "maildir:$md" => [ 'x:2,S' ] } },
                 'maildir sync info as expected');
 
         lei_ok qw(ls-mail-sync);