Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Add reparenting functional test #165

Merged
merged 1 commit into from
Feb 4, 2019
Merged

Add reparenting functional test #165

merged 1 commit into from
Feb 4, 2019

Conversation

eanders-ms
Copy link
Contributor

Also sorting of the test list got lost in a merge somewhere so I restored it.

for (let i = 0; i < 10 && this.running; ++i) {
await delay(100);
}
currParent = 1 - currParent;
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a really strange way to iterate through a list. It works in this case because there are only two items, so I guess it's fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, just toggling the indices. Doesn't scale to more than two, but easily swapped out if we need to add more parents.

@eanders-ms eanders-ms merged commit 8f403a2 into red Feb 4, 2019
@eanders-ms eanders-ms deleted the eanders/reparent branch February 19, 2019 17:57
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