]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: attempt to send QUIT to smtp-dummy in case mail send failed
[notmuch] / test / test-lib.sh
index cf309f9440d4b8a9cc4f4fe941f2b87b36470ef9..93867b03c4e05bb96461ab767d2232a36ebb866f 100755 (executable)
@@ -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
 }