jalcon
2011-03-30
Intellij Idea 8.1.3, JUnit Mac OS X 10.6.7 A simple call to SimpleSmtpServer.start(); hangs intermittently, and without consistency, does anyone have any tips? See code:
import junit.framework.TestCase;
import com.dumbster.smtp.SimpleSmtpServer;
/**
* Created by IntelliJ IDEA.
* User: root
* Date: Mar 30, 2011
* Time: 3:43:18 PM
* To change this template use File | Settings | File Templates.
*/
public class DumbsterSanity extends TestCase {
SimpleSmtpServer smtp_server;
protected void setUp() throws Exception {
super.setUp();
}
public void test() throws Exception {
/*
* Given nothing
*/
/*
* When we call the static server start
*/
smtp_server = SimpleSmtpServer.start();
/*
* Then the server should not be stopped
*/
assertFalse(smtp_server.isStopped());
}
}
denkerszaf
2011-07-24
Yeah, this is a race condition within dumbster… Used to happen on my machine, too.
I am currently in progress of packaging dumbster for debian. I've written a patch for this, I'll try to add it to my post…
denkerszaf
2011-07-24
Ok, the patch i mentioned is located here: http://paste.debian.net/124011/