kubo/epictest
Juan Batiz-Benet 6bd4a6ddb2 epictest: fix mn.Peers() setup race
@maybebtc the error was not inside mocknet. the error is in
assuming the peers / nets returned follow the same order.
See:
- https://github.com/jbenet/go-ipfs/blob/master/epictest/addcat_test.go#L100
- https://gist.github.com/jbenet/a39bb9d2f16532a03bb8

if you want the results to be sorted by peer.ID before they
are returned, we can totally do that, but that's probably an
unsafe assumption to make in general-- if you do your
initialization async, the number of networks or peers may have
changed between the two calls. LMK what you prefer.

(thank you golang map chaosmonkey ;)
2014-12-27 22:59:35 -08:00
..
addcat_test.go epictest: fix mn.Peers() setup race 2014-12-27 22:59:35 -08:00
bench_test.go rename 2014-12-25 04:07:16 -05:00
core.go epictest: add setup logging 2014-12-27 22:55:34 -08:00
Makefile feat(integration_test) add make task to perform benchmarks in docker env 2014-12-24 09:31:19 -05:00
test_config.go hotfix: copy paste error 2014-12-15 20:46:20 -08:00
three_legged_cat_test.go epictest: fix mn.Peers() setup race 2014-12-27 22:59:35 -08:00
unit_test.go fix(epictest) generate data before starting benchmark 2014-12-14 18:11:44 -08:00
unit.go fix(epictest) generate data before starting benchmark 2014-12-14 18:11:44 -08:00