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

swarm: simplify network test #2070

Merged
merged 9 commits into from
Jan 13, 2020
Merged

swarm: simplify network test #2070

merged 9 commits into from
Jan 13, 2020

Conversation

acud
Copy link
Member

@acud acud commented Jan 8, 2020

This PR aims to simplify the network test file because some of the tests are flaking.
The structure, concurrency and counter pointers that are passed around make it very difficult to debug and understand.

@acud acud self-assigned this Jan 8, 2020
@acud acud added this to Backlog in Swarm Core - Sprint planning via automation Jan 8, 2020
@acud acud moved this from Backlog to In progress in Swarm Core - Sprint planning Jan 8, 2020
@acud acud force-pushed the simplify-network-test branch 2 times, most recently from 9e44b96 to 8dc71a6 Compare January 8, 2020 05:41
@acud acud requested a review from janos January 8, 2020 12:22
network_test.go Outdated Show resolved Hide resolved
network_test.go Outdated Show resolved Hide resolved
network_test.go Outdated Show resolved Hide resolved
network_test.go Outdated Show resolved Hide resolved
network_test.go Outdated Show resolved Hide resolved
network_test.go Outdated Show resolved Hide resolved
@acud acud requested a review from janos January 10, 2020 07:36
@acud acud moved this from In progress to In review (includes Documentation) in Swarm Core - Sprint planning Jan 10, 2020
Copy link
Member

@janos janos left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

syncing = false
for _, id := range nodeIDs {
if sim.MustNodeItem(id, bucketKeyInspector).(*api.Inspector).IsPullSyncing() {
syncing = true
Copy link
Member

Choose a reason for hiding this comment

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

I think that after syncing = true a break can go.

Copy link
Member Author

@acud acud Jan 13, 2020

Choose a reason for hiding this comment

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

true. i missed this at first view. will piggy back this over some other PR 👍

@acud acud merged commit 2c9e315 into master Jan 13, 2020
Swarm Core - Sprint planning automation moved this from In review (includes Documentation) to Done Jan 13, 2020
@acud acud deleted the simplify-network-test branch January 13, 2020 04:24
@acud acud added this to the 0.5.5 milestone Jan 21, 2020
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

4 participants