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

test: improve exchange files #59

Merged
merged 11 commits into from
Apr 11, 2019
Merged

test: improve exchange files #59

merged 11 commits into from
Apr 11, 2019

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Mar 29, 2019

This fixes an issue with relay configuration for the upcoming js-ipfs release.

Also:

  • timeouts were set way too high on the circuit tests. They shouldn't take that long, and its better they fail faster.
  • windows cache isnt reliable on Travis right now, so I disabled that
  • Exchange files timeouts were set at 15mins. Travis errors after 10mins of inactivity, so I dropped it down to 8mins.

Exchange files

I refactored the exchange files tests to make them less prone to accidentally communicating with each other. While this is valuable scenario testing, it detracts from the goal of exchange files. I think there is value in having tests that exercise large data transfers with several nodes connected, but those should be separate tests. This will help prevent things like the dht from communicating with other nodes in the test suite without needing to disable them.

This does have a slight impact on startup times for the tests as the nodes are started and shutdown for each exchange files iteration, but overall it should help reduce time by avoiding unwanted network traffic.

@ghost ghost assigned jacobheun Mar 29, 2019
@ghost ghost added the status/in-progress In progress label Mar 29, 2019
@jacobheun jacobheun mentioned this pull request Apr 2, 2019
1 task
@jacobheun jacobheun changed the title [WIP] chore: update to latest js-ipfs chore: test updates Apr 4, 2019
@jacobheun jacobheun marked this pull request as ready for review April 4, 2019 16:03
@jacobheun jacobheun requested a review from alanshaw April 4, 2019 16:03
@jacobheun jacobheun mentioned this pull request Apr 8, 2019
7 tasks
@jacobheun jacobheun changed the title chore: test updates test: improve exchange files Apr 8, 2019
@alanshaw
Copy link
Member

LGTM and tests passing locally

@alanshaw alanshaw merged commit 897745c into master Apr 11, 2019
@alanshaw alanshaw deleted the test/libp2p-next branch April 11, 2019 14:38
@ghost ghost removed the status/in-progress In progress label Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants