[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch master updated. v_0.9.30-52-g4918020

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Wed Oct 26 15:42:20 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Logback: the generic, reliable, fast and flexible logging framework.".

The branch, master has been updated
       via  49180202f04f4e216fc18a276f41e57dbd947f81 (commit)
      from  f643e9250ee389fd8b3e29672392534e2e822a26 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=49180202f04f4e216fc18a276f41e57dbd947f81
http://github.com/ceki/logback/commit/49180202f04f4e216fc18a276f41e57dbd947f81

commit 49180202f04f4e216fc18a276f41e57dbd947f81
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Wed Oct 26 15:42:02 2011 +0200

    make port collisions less likely

diff --git a/logback-classic/src/test/java/ch/qos/logback/classic/net/SMTPAppender_SubethaSMTPTest.java b/logback-classic/src/test/java/ch/qos/logback/classic/net/SMTPAppender_SubethaSMTPTest.java
index c59d364..826010c 100644
--- a/logback-classic/src/test/java/ch/qos/logback/classic/net/SMTPAppender_SubethaSMTPTest.java
+++ b/logback-classic/src/test/java/ch/qos/logback/classic/net/SMTPAppender_SubethaSMTPTest.java
@@ -18,6 +18,7 @@ import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
 import java.io.ByteArrayOutputStream;
+import java.net.BindException;
 import java.util.List;
 import java.util.Random;
 import java.util.concurrent.ThreadPoolExecutor;
@@ -55,7 +56,7 @@ import ch.qos.logback.core.util.StatusPrinter;
 
 public class SMTPAppender_SubethaSMTPTest {
 
-  int diff = 1024 + new Random().nextInt(10000);
+  int diff = 1024 + new Random().nextInt(30000);
   Wiser wiser;
 
   SMTPAppender smtpAppender;
@@ -68,8 +69,7 @@ public class SMTPAppender_SubethaSMTPTest {
   @Before
   public void setUp() throws Exception { 
     wiser = new Wiser();
-    wiser.setPort(diff); 
-    wiser.getServer();
+    wiser.setPort(diff);
     wiser.start();
     //StartTLSCommand s;
     buildSMTPAppender();
@@ -81,6 +81,7 @@ public class SMTPAppender_SubethaSMTPTest {
     smtpAppender.setName("smtp");
     smtpAppender.setFrom("user at host.dom");
     smtpAppender.setSMTPHost("localhost");
+    System.out.println("diff="+diff);
     smtpAppender.setSMTPPort(diff);
     smtpAppender.setSubject(TEST_SUBJECT);
     smtpAppender.addTo("noreply at qos.ch");

-----------------------------------------------------------------------

Summary of changes:
 .../classic/net/SMTPAppender_SubethaSMTPTest.java  |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Logback: the generic, reliable, fast and flexible logging framework.


More information about the logback-dev mailing list