Permalink
Browse files

fixed Nexus1806ValidateSmtpConfigurationIT cleanup after tests

EmailUtil keeps private static server instance. Stopping the
instance directly instead of calling EmailUtil.stopEmailServer
breaks future calls to EmailUtil.startEmailServer.

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
  • Loading branch information...
1 parent c4bef96 commit a55a0f932aa28bda3a067c90f13c1b85d0c3c2d2 @ifedorenko ifedorenko committed Jan 6, 2013
@@ -149,8 +149,8 @@ public void stop()
{
if ( originalServer != null )
{
- originalServer.stop();
-
+ EmailUtil.stopEmailServer();
+
originalServer = null;
}
if ( changedServer != null )

0 comments on commit a55a0f9

Please sign in to comment.