From c832dad3224f627e528530102976b172048758ea Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 16 Nov 2011 23:25:19 +0200 Subject: [PATCH] test: attempt to send QUIT to smtp-dummy in case mail send failed If mail sending from emacs fails before it has chance to connect to the smtp-dummy mail server, the opportunistic QUIT message sending makes smtp-dummy to exit. --- test/test-lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-lib.sh b/test/test-lib.sh index cf309f94..93867b03 100755 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -398,6 +398,8 @@ emacs_deliver_message () (insert \"${body}\") $@ (message-send-and-exit))" + # opportunistically quit smtp-dummy in case above fails. + { echo QUIT > /dev/tcp/localhost/25025; } 2>/dev/null wait ${smtp_dummy_pid} notmuch new >/dev/null } -- 2.43.0