-
Notifications
You must be signed in to change notification settings - Fork 15
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
Get ExecGraph
hosts
#178
Get ExecGraph
hosts
#178
Conversation
@@ -72,6 +72,25 @@ TEST_CASE("Test execution graph", "[scheduler][exec-graph]") | |||
checkExecGraphEquality(expected, actual); | |||
} | |||
|
|||
TEST_CASE("Test execution graph node count", "[scheduler][exec-graph]") |
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.
This is very nitpicky but the API is about getting the unique host names from the graph, not the count.
I'd have thought this test would be called Test get unique hosts from exec graph
, then the assertion at the end would look like:
std::set<std::string> expected = {"foo", "bar", "baz"};
REQUIRE(hosts == expected);
Currently the test also doesn't cover duplicates, it's got 3 messages each executed on a different host. It would be good to add another message for a different function but executed on the same host as one of the others to be extra sure.
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.
All good points, thanks.
Add utility function to get the distinct hosts in an execution graph.
Also bump the code version to re-build the containers as required in #177