-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSDK-723 Do not sort components when ensuring config #1443
RSDK-723 Do not sort components when ensuring config #1443
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
@@ -735,9 +735,6 @@ func TestManagerNewComponent(t *testing.T) { | |||
return resource.Name{}, false | |||
}), test.ShouldBeNil) | |||
robotForRemote.config.Components[8].DependsOn = append(robotForRemote.config.Components[8].DependsOn, "arm3") | |||
_, err = config.SortComponents(robotForRemote.config.Components) | |||
test.That(t, err, test.ShouldNotBeNil) | |||
test.That(t, err.Error(), test.ShouldEqual, "circular dependency detected in component list between arm3, board3") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will still return a circular dependency error when we try to update the robot with this config, and this behavior is tested at the end of this test function.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm if you've tested on some hardware to make sure the sorting is still actually happening
JIRA: RSDK-723