gen-smtp / gen_smtp

The extensible Erlang SMTP client and server library.
Other
683 stars 266 forks source link

Test relies on external server #281

Closed mworrell closed 3 years ago

mworrell commented 3 years ago

We have a test that relies on an external server:

{"Erlang 23.2.7 compatibility",
 fun() ->
         Receipt = gen_smtp_client:send_blocking({<<"Info.ContactTracing@sg.ch">>, [<<"maennchen@joshmartin.ch">>], <<"test">>},
                                                 [{relay, <<"joshmartin.ch">>},
                                                  {port, 25},
                                                  {hostname, "smtp.covid19-tracing.ch"},
                                                  {retries, 10}]
                                                ),
         ?assertMatch({error, send, _}, Receipt),
         ok
 end
}

This test should be removed.