Skip to content

Composition test template is wrong #266

@henriquejsfj

Description

@henriquejsfj

Hello guys,
The composition test template has this part there:

# sample =
#     expect_execution do
#         syskit_write cmp_task.my_child.an_output_port, test_sample
#     end.to { have_one_new_sample cmp_task.my_child.an_input_port }

I guess it is wrong because it is writing to an output port and reading from an input port. In the composition, test context should be the opposite, so I suggest that:

# sample =
#     expect_execution do
#         syskit_write cmp_task.my_child.an_input_port, test_sample
#     end.to { have_one_new_sample cmp_task.my_child.an_output_port }

I didn't find where to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions