e785ad1d64
sharness: make sure not mounted
...
if a test is cancelled, unmount may not run. then, must
run umount before mounting, just to make sure.
2015-01-05 08:04:52 -08:00
b372b4879e
sharness: init: bootstrap rm -all
...
sharness tests should not bootstrap to the dht. it
may be useful to test that specifically, but not on
the other tests.
2015-01-05 08:00:16 -08:00
730793e2f7
cmds/bootstrap: rm --all
2015-01-05 07:59:53 -08:00
585e7164f1
Merge pull request #426 from jbenet/feat/dht-bootstrap
...
feat(dht) Bootstrap
2015-01-05 07:24:46 -08:00
1d9977c850
dht/bootstrap/test: longer timeout, less bias
2015-01-05 07:19:07 -08:00
dfcea4c6f1
bootstrap: not error to not have enough bootstrap peers
...
use dht bootstrap. there is an edge case where the dht
is tiny (1?) and we have 0 bootstrap peers. we should
probably _inform_ the user, but this may be more a
webui or command thing.
2015-01-05 07:13:51 -08:00
474b74f70b
dht/bootstrap: (optional) parallelism + error on peer
...
This also makes it an Error to find a peer.
2015-01-05 06:51:38 -08:00
59f47cfd34
dht: bootstrap query logging
2015-01-05 06:44:19 -08:00
30eb8f213f
adjust const
...
to test jenkins
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2015-01-05 06:25:56 -08:00
9e4b9714ce
feat(core) dht.Bootstrap
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2015-01-05 06:25:25 -08:00
c065bcce55
Merge pull request #490 from jbenet/more-dht-fixes
...
various fixes
2015-01-05 05:59:17 -08:00
919e9bebee
ipns test: is fast republish a timing prob?
2015-01-05 05:48:35 -08:00
1ab9588cba
p2p/test: bogus key pair for faster tests
2015-01-05 05:48:15 -08:00
41af4f4ea1
dht test skips
2015-01-05 04:55:02 -08:00
172801712e
dht: even more logging.
2015-01-05 04:55:02 -08:00
f25dfb68b9
peer/queue: close fix, and logging
2015-01-05 04:55:02 -08:00
09a2e1f64c
testutil: obvious names for seeded key pairs
2015-01-05 04:55:02 -08:00
10072c149d
bitswap: log superfluous messages
2015-01-05 04:55:02 -08:00
aeb2e07198
bitswap: remove DialPeer from interface
...
Bitswap doesn't usually care about dialing. the underlying
network adapter can make sure of that.
2015-01-05 04:55:02 -08:00
f6def11eb3
make test
now runs expensive tests.
...
We use make test as the measure of correctness.
This laxity has let bugs creep into several systems.
This commit changes our target to always run expensive
tests, unless one specifically runs `make test_short`
(we would do well to remove most if not all timing--
that's usually what makes tests take a long time.)
2015-01-05 04:55:02 -08:00
032b35b2ac
dht: key without record validator func
...
This is causing test failures because tests don't usually
have "/-/-" format. we can decide whether or not to allow
keys without validators, but for now removing.
cc @whyrusleeping
2015-01-05 04:55:01 -08:00
9d0736bc3b
peer+mocknet: sorting for determinism.
2015-01-05 04:55:01 -08:00
ce367ee76e
ext_test: bitten by mocknet ordering
...
mocknet indeterminism screwed this test up. that's twice
it's bitten us. let's not let it do it a third time.
cc @briantigerchow omg.
2015-01-05 04:55:01 -08:00
b4be7c5986
dht: extend duration of TestGetFailures
...
TestGetFailures may just be operating very slowly, instead
of completely failing. Right now it gets caught on travis
often. not sure if its actually wrong.
2015-01-05 00:16:54 -08:00
b599e28b88
core/mock: use mock routing
...
this fixes a failing ipns test which didnt have
a "working" routing system
2015-01-05 00:16:53 -08:00
a8127a28e1
fix: force clean test results directory
...
Without `-f`, `make clean` fails on machines that don't have the dir.
cc @jbenet
2015-01-05 00:16:53 -08:00
05d8c80c39
fix(bitswap/network): return when context is done
...
@jbenet @whyrusleeping
This bug (missing return) could tie up the client worker and cause
operations to come to a halt.
2015-01-05 00:16:53 -08:00
64cb32dadd
disable utp
...
utp is BROKEN!! it causes tests to fail.
2015-01-05 00:16:53 -08:00
9c6228d18f
bitswap and dht: lots of debugging logs
2015-01-05 00:16:53 -08:00
bb8886f3af
merkledag: LONG timeout on Get
...
we shouldn't use an arbitrary timeout here. since Get
doesnt take in a context yet, we give a large upper bound.
think of an http request. we want it to go on as long as
the client requests it.
2015-01-05 00:16:53 -08:00
71ada4696f
bitswap net: always close
2015-01-05 00:16:53 -08:00
d357b0ac00
bitswap debug logging
2015-01-05 00:16:53 -08:00
c100390a49
bitswap engine: signal in own func
2015-01-05 00:16:52 -08:00
623625845d
prefix logger
...
this commit adds a logger with prefixes
2015-01-05 00:16:52 -08:00
5639042df5
bitswap: send wantlist code reuse + debug logs
2015-01-05 00:16:52 -08:00
7629ad7ec7
bitswap: add self peer.ID
2015-01-05 00:16:52 -08:00
17ce192af5
dht: some provider debug logging
2015-01-05 00:16:52 -08:00
3b6350331f
dht: debug dont cast Key as peer.ID
2015-01-05 00:16:52 -08:00
e3223a073e
dockertest: logging niceness
2015-01-05 00:16:52 -08:00
0b0ca40863
Merge pull request #480 from jbenet/fix/sharness-init
...
fix sharness test for ipfs init output
2015-01-05 00:14:46 -08:00
c47b808d77
sharness/init: fixed ipfs init output
2015-01-05 00:09:49 -08:00
b241c8048f
fix sharness test for ipfs init output
2015-01-05 00:02:56 -08:00
02eb6ac2c1
Merge pull request #493 from jbenet/sharness-verbose
...
sharness: verbose output
2015-01-04 23:02:15 -08:00
e407c2ef83
sharness: override test_cmp for verbose
2015-01-04 22:53:21 -08:00
acf4759758
travis: enable verbose sharness output
2015-01-04 22:37:30 -08:00
481c19ac23
sharness: note in makefile describing TEST_VERBOSE
2015-01-04 22:30:59 -08:00
3510a8278c
makefile fix: order of env vars
2015-01-04 22:29:11 -08:00
e5f24dc26b
sharness: expanded on readme
2015-01-04 22:22:45 -08:00
be4191d800
sharness: nice verbose ouput
...
Make sharness tests' output helpful when verbose.
This means cating certain files, or running diagnostic
commands. I used a construction like:
test_expect_success ".go-ipfs/ has been created" '
test -d ".go-ipfs" &&
test -f ".go-ipfs/config" &&
test -d ".go-ipfs/datastore" ||
fsh ls -al .go-ipfs
'
The `|| ...` is a diagnostic run when the preceding command
fails. `fsh` is a trivial script that echoes the args, runs
the cmd, and then also fails, making sure the test case fails.
(wouldnt want the diagnostic accidentally returning true and
making it _seem_ like the test case succeeded).
2015-01-04 22:22:33 -08:00
d06e7e342d
sharness: set verbosity from env
2015-01-04 20:39:23 -08:00