X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT670-duplicate-mid.sh;fp=test%2FT670-duplicate-mid.sh;h=3495e63dd5cdc5e12194e0e3f28bf78c5b013e33;hb=44914f1c3b229ae8aaaa967172a5bd5681e98faf;hp=decbc0a4e99756c0d13e7231d913899a06deb376;hpb=1348212cb051b846bbe98f6d653da45aad3dfefa;p=notmuch diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index decbc0a4..3495e63d 100755 --- a/test/T670-duplicate-mid.sh +++ b/test/T670-duplicate-mid.sh @@ -39,23 +39,24 @@ test_expect_equal_file EXPECTED OUTPUT rm ${MAIL_DIR}/copy1 test_begin_subtest 'Deleted first duplicate file does not stop notmuch show from working' -output=$(notmuch show --body=false --format=json id:duplicate) +output=$(notmuch show --body=false --format=json id:duplicate | + notmuch_json_show_sanitize | sed 's/message [0-9]/A_SUBJECT/') expected='[[[{ - "id": "'duplicate'", + "id": "XXXXX", "match": true, "excluded": false, "filename": [ "'"${MAIL_DIR}"/copy1'", "'"${MAIL_DIR}"/copy2'" ], - "timestamp": 978709435, + "timestamp": 42, "date_relative": "2001-01-05", "tags": ["inbox","unread"], "headers": { - "Subject": "message 2", + "Subject": "A_SUBJECT", "From": "Notmuch Test Suite ", "To": "Notmuch Test Suite ", - "Date": "Fri, 05 Jan 2001 15:43:55 +0000" + "Date": "GENERATED_DATE" } }, []]]]'