Skip to content

Commit

Permalink
#71 better test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 27, 2023
1 parent c91dd15 commit 3671a5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/java/com/jcabi/email/wire/SmtpTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ void sendsEmailToSmtpServer() throws Exception {
try {
new Postman.Default(
new Smtp(
new Token("", "")
.access(new Protocol.Smtp(bind, port))
new Token("", "").access(
new Protocol.Smtp(
server.getSmtp().getBindTo(),
server.getSmtp().getPort()
)
)
)
).send(
new Envelope.Safe(
Expand Down

0 comments on commit 3671a5a

Please sign in to comment.