Commit 6b2d2f75 authored by wxt's avatar wxt
Browse files

nixosTests.mailhog: reenable the flags

parent 649ec091
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -6,9 +6,7 @@
    RTUnreal
  ];

  nodes.machine =
    { pkgs, ... }:
    {
  nodes.machine = _: {
    services.mailhog.enable = true;
  };

@@ -19,7 +17,7 @@
    machine.wait_for_open_port(1025)
    machine.wait_for_open_port(8025)
    # Test sendmail wrapper (this uses smtp, which tests the connection)
    machine.succeed('printf "To: root@example.com\r\n\r\nthis is the body of the email" | sendmail -f sender@example.com')
    machine.succeed('printf "To: root@example.com\r\n\r\nthis is the body of the email" | sendmail -t -i -f sender@example.com')
    res = machine.succeed(
        "curl --fail http://localhost:8025/api/v2/messages"
    )