-#!/usr/bin/env python
+#!/usr/bin/python
"""Automated tests of the apt-p2p functionality.
@var CWD: the working directory the script was run from
@type apt_conf_template: C{string}
@var apt_conf_template: the template to use for the apt.conf file
-
+@type apt_p2p_conf_template: C{string}
+@var apt_p2p_conf_template: the template to use for the apt-p2p.conf file
"""
from time import sleep, time
# Refresh the DHT keys after this much time has passed.
# This should be a time slightly less than the DHT's KEY_EXPIRE value.
-KEY_REFRESH = 57m
+KEY_REFRESH = 2.5h
# The user name to try and run as (leave blank to run as current user)
USERNAME =
# refresh buckets that haven't been touched in this long
BUCKET_STALENESS = 1h
+# Whether it's OK to add nodes to the routing table that use an IP
+# address from a known local/private range.
+# If not specified here, the LOCAL_OK value in the DEFAULT section will be used.
+LOCAL_OK = yes
+
# expire entries older than this
-KEY_EXPIRE = 1h
+KEY_EXPIRE = 3h
# Timeout KRPC requests to nodes after this time.
KRPC_TIMEOUT = 14s