Skip to content

Commit

Permalink
Fix test in 'SmtpTransportTest'
Browse files Browse the repository at this point in the history
We tested whether the connection was still open. But we should test
whether the connection was closed. The test passed most of the time
because closing a connection takes some time.
  • Loading branch information
cketti committed May 24, 2019
1 parent d19f1e4 commit 6f0bae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void open_withoutLoginAndPlainAuthExtensions_shouldThrow() throws Excepti
assertEquals("Authentication methods SASL PLAIN and LOGIN are unavailable.", e.getMessage());
}

server.verifyConnectionStillOpen();
server.verifyConnectionClosed();
server.verifyInteractionCompleted();
}

Expand Down

0 comments on commit 6f0bae8

Please sign in to comment.