Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

network/stream: refactor cursors tests #1786

Merged
merged 3 commits into from
Sep 23, 2019
Merged

Conversation

janos
Copy link
Member

@janos janos commented Sep 20, 2019

This PR changes two tests that are still flaky on travis. It utilizes already existing cursors wait function with retry loop. They also use t.Error and t.Fatal to have better visibility on failure. All tests have been re-run for many times manually on travis without failures. There were no failures in a few hundred runs locally.

@janos janos self-assigned this Sep 20, 2019
@janos janos added this to Backlog in Swarm Core - Sprint planning via automation Sep 20, 2019
@janos janos added this to the 0.5.0 milestone Sep 20, 2019
Copy link
Member

@acud acud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with just one minor comment

network/stream/v2/cursors_test.go Outdated Show resolved Hide resolved
@acud acud moved this from Backlog to In progress in Swarm Core - Sprint planning Sep 23, 2019
@acud acud moved this from In progress to In review (includes Documentation) in Swarm Core - Sprint planning Sep 23, 2019
@janos janos merged commit 9884069 into master Sep 23, 2019
Swarm Core - Sprint planning automation moved this from In review (includes Documentation) to Done Sep 23, 2019
chadsr added a commit to chadsr/swarm that referenced this pull request Sep 23, 2019
* 'master' of github.com:ethersphere/swarm: (32 commits)
  network/stream: refactor cursors tests (ethersphere#1786)
  network: Add capabilities if peer from store does not have it (ethersphere#1791)
  Swap logger (ethersphere#1754)
  network: Add capability filtered depth calculation (ethersphere#1787)
  travis: remove go1.12 job (ethersphere#1784)
  cmd/swarm: correct bzznetworkid flag description (ethersphere#1761)
  network, pss: Capability in pss (ethersphere#1764)
  network/stream: handle nil peer in TestNodesExchangeCorrectBinIndexes (ethersphere#1779)
  protocols, retrieval: swap-enabled messages implement Price (ethersphere#1771)
  cmd/swarm-smoke: fix waitToPushSynced connection closing (ethersphere#1781)
  cmd/swarm: simplify testCluster.StartNewNodes (ethersphere#1777)
  build: increase golangci-lint deadline (ethersphere#1778)
  docker: ignore build/bin when copying files (ethersphere#1780)
  swap: fix and rename Peer.getLastSentCumulativePayout (ethersphere#1769)
  network/stream: more resilient TestNodesCorrectBinsDynamic (ethersphere#1776)
  network: Add Capabilities to Kademlia database (ethersphere#1713)
  network: add own address to KademliaInfo (ethersphere#1775)
  pss: Refactor. Step 2. Refactor forward cache (ethersphere#1742)
  all: configurable payment/disconnect thresholds (ethersphere#1729)
  network/stream/v2: more resilient TestNodesExchangeCorrectBinIndexes (ethersphere#1760)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants