Changeset f288682


Ignore:
Timestamp:
Feb 3, 2019 12:47:33 PM (19 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d7808cd
Parents:
19defbe
Message:

Test: Disable NTP in LocalClientManager?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/test/junit/net/i2p/router/client/LocalClientManager.java

    r19defbe rf288682  
    88 *
    99 */
     10
     11import java.util.Properties;
    1012
    1113import gnu.getopt.Getopt;
     
    159161        }
    160162
    161         RouterContext ctx = new RouterContext(null);
     163        Properties props = new Properties();
     164        // prevent NTP queries
     165        props.setProperty("time.disabled", "true");
     166        RouterContext ctx = new RouterContext(null, props);
    162167        int port = ClientManagerFacadeImpl.DEFAULT_PORT;
    163168        LocalClientManager mgr = new LocalClientManager(ctx, port);
Note: See TracChangeset for help on using the changeset viewer.