--- a/tests/test-notify
+++ b/tests/test-notify
@@ -34,7 +34,8 @@ hg --traceback --cwd a commit -Amb -d '1
echo '% pull (minimal config)'
hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
-e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \
- -e 's/^details: .*test-notify/details: test-notify/'
+ -e 's/^details: .*test-notify/details: test-notify/' \
+ -e 's/^Date:.*/Date:/'
cat <<EOF >> $HGRCPATH
[notify]
@@ -50,5 +51,6 @@ EOF
echo % pull
hg --cwd b rollback
hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
- -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/'
+ -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
+ -e 's/^Date:.*/Date:/'