Changeset a9d9e6b


Ignore:
Timestamp:
Jun 28, 2013 6:43:36 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
10bf74e
Parents:
bddfe3ed
Message:

work on test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/test/junit/net/i2p/client/streaming/ConnectTimeoutTest.java

    rbddfe3ed ra9d9e6b  
    3131        _log = context.logManager().getLog(ConnectTest.class);
    3232        _log.debug("creating server dest");
    33         try {
    34             _serverDest = I2PClientFactory.createClient().createDestination(new ByteArrayOutputStream());
    35         } catch (Exception e) {}
     33        _serverDest = I2PClientFactory.createClient().createDestination(new ByteArrayOutputStream());
    3634        _log.debug("creating client session");
    3735        _client = createSession();
     
    7674    }
    7775   
    78     private I2PSession createSession() {
    79         try {
    80             I2PClient client = I2PClientFactory.createClient();
    81             ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
    82             Destination dest = client.createDestination(baos);
    83             Properties p = getProps();
     76    private I2PSession createSession() throws Exception {
     77        I2PClient client = I2PClientFactory.createClient();
     78        ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
     79        Destination dest = client.createDestination(baos);
     80        Properties p = getProps();
    8481
    85             I2PSession sess = client.createSession(new ByteArrayInputStream(baos.toByteArray()), p);
    86             sess.connect();
    87             return sess;
    88         } catch (Exception e) {
    89             _log.error("error running", e);
    90             throw new RuntimeException("b0rk b0rk b0rk");
    91         }
     82        I2PSession sess = client.createSession(new ByteArrayInputStream(baos.toByteArray()), p);
     83        sess.connect();
     84        return sess;
    9285    }
    9386   
Note: See TracChangeset for help on using the changeset viewer.