Changeset 937404b


Ignore:
Timestamp:
Jun 29, 2013 8:35:27 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
782e38b
Parents:
a0bf2230
Message:

test seems to be hopelessly out of date

File:
1 edited

Legend:

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

    ra0bf2230 r937404b  
    3131        _client = createSession();
    3232        _log.debug("running client");
    33         runClient(context, _client);
     33        runClient(context, _client).join();
    3434    }
    3535   
     
    4444       
    4545        public void run() {
    46             try {
    47                 I2PSocketManager mgr = I2PSocketManagerFactory.createManager("localhost", 10001, getProperties());
    48                 _log.debug("manager created");
    49                 _log.debug("options: " + mgr.getDefaultOptions());
    50                 I2PSocket socket = mgr.connect(_serverDest);
    51                 _log.debug("socket created");
    52                 socket.getOutputStream().write("you smell".getBytes());
    53                 socket.getOutputStream().flush();
    54                 _log.error("wtf, shouldn't have flushed");
    55                 socket.close();
    56                 _log.debug("socket closed");
    57             } catch (Exception e) {
    58                 _log.error("error running (yay!)", e);
    59             }
     46            I2PSocketManager mgr = I2PSocketManagerFactory.createManager("localhost", 10001, getProperties());
     47            assertNull(mgr);
    6048        }
    61        
     49
    6250    }
    6351   
     
    7260        p.setProperty(I2PSocketManagerFactory.PROP_MANAGER, I2PSocketManagerFull.class.getName());
    7361        p.setProperty("tunnels.depthInbound", "0");
    74         p.setProperty(I2PClient.PROP_TCP_HOST, "localhost");
    75         p.setProperty(I2PClient.PROP_TCP_PORT, "10001");
    7662        p.setProperty(ConnectionOptions.PROP_CONNECT_TIMEOUT, "30000");
    7763        //p.setProperty(ConnectionOptions.PROP_CONNECT_DELAY, "10000");
Note: See TracChangeset for help on using the changeset viewer.