1. 23 12月, 2014 13 次提交
    • dockertest script to run the test on any img · 4c13b958
      - run the build image task every time to avoid
        running the test on stale code
      - run the test from a script, so that we can
        run the test on different pre-built images.
        like:
      
          # build an image now and run tests on it
          make test
      
          # run tests on previously built image
          ./run-test-on-img.sh ipfs-stable
      
          # TODO: run test on git ref
          ./run-test-on-git-ref.sh <git-ref>
      Juan Batiz-Benet 提交于
    • dht: bit nicer logging · 2c95cb54
      Juan Batiz-Benet 提交于
    • core: set local listening addresses · a10fb7aa
      Juan Batiz-Benet 提交于
    • Makefiles: build the test docker img · 87c4fb2f
      this commit changes how the dockertest image is built.
      it moves the command into dockertest/Makefile. It also
      uses a cached file that -- if removed with make clean
      -- can signal whether the image should be rebuilt.
      (it may be ideal to have it either detect code has
      changed, or just rebuild every time. )
      Juan Batiz-Benet 提交于
    • net/mocknet: fixed listenaddrs (misrepresenting) · 497297b2
      some dht tests signaled "sending peer empty addresses"
      which would then cause a failure. this was a misrepresentation
      on the part of mocknet. it has been corrected.
      Juan Batiz-Benet 提交于
    • net: have an explicit IdentifyConn on dial · 4fe1dd9b
      - Make sure we call IdentifyConn on dialed out conns
      - we wait until the identify is **done** before return
      - on listening case, we can also wait.
      - tests now make sure dial does wait.
      - tests now make sure we can wait on listening case.
      Juan Batiz-Benet 提交于
    • net/id_test: refactor tests into own func · d9961893
      Juan Batiz-Benet 提交于
    • routing/mock test: kill leaked goroutine · c2b21e47
      Juan Batiz-Benet 提交于
    • fix: the docker-test's make task · 10bb354f
      Brian Tiger Chow 提交于
    • peer change: peer.Peer -> peer.ID · c84a714b
      this is a major refactor of the entire codebase
      it changes the monolithic peer.Peer into using
      a peer.ID and a peer.Peerstore.
      
      Other changes:
      - removed handshake3.
      -	testutil vastly simplified peer
      -	secio bugfix + debugging logs
      -	testutil: RandKeyPair
      -	backpressure bugfix: w.o.w.
      -	peer: added hex enc/dec
      -	peer: added a PeerInfo struct
        PeerInfo is a small struct used to pass around a peer with
       	a set of addresses and keys. This is not meant to be a
       	complete view of the system, but rather to model updates to
       	the peerstore. It is used by things like the routing system.
      -	updated peer/queue + peerset
      -	latency metrics
      -	testutil: use crand for PeerID gen
       	RandPeerID generates random "valid" peer IDs. it does not
       	NEED to generate keys because it is as if we lost the key
       	right away. fine to read some randomness and hash it. to
       	generate proper keys and an ID, use:
       	  sk, pk, _ := testutil.RandKeyPair()
       	  id, _ := peer.IDFromPublicKey(pk)
       	Also added RandPeerIDFatal helper
      - removed old spipe
      - updated seccat
      - core: cleanup initIdentity
      - removed old getFromPeerList
      Juan Batiz-Benet 提交于
    • peer/queue/sync: remove buffering · d399a932
      Juan Batiz-Benet 提交于
    • util: fractional context · ec96a0b0
      Juan Batiz-Benet 提交于
    • threadsafe SeededRand · cc7a869e
      Juan Batiz-Benet 提交于
  2. 21 12月, 2014 1 次提交
  3. 20 12月, 2014 1 次提交
  4. 19 12月, 2014 1 次提交
  5. 18 12月, 2014 24 次提交