Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
ea7b8e3e
Commit
ea7b8e3e
authored
Sep 09, 2018
by
Dominik Charousset
Committed by
Dominik Charousset
Sep 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement test for reproducing #753
parent
06ac64da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
libcaf_core/test/pipeline_streaming.cpp
libcaf_core/test/pipeline_streaming.cpp
+20
-0
No files found.
libcaf_core/test/pipeline_streaming.cpp
View file @
ea7b8e3e
...
...
@@ -419,4 +419,24 @@ CAF_TEST(depth_4_pipeline_500_items) {
CAF_CHECK_EQUAL
(
deref
<
sum_up_actor
>
(
snk
).
state
.
x
,
125000
);
}
CAF_TEST_DISABLED
(
depth_3_pipeline_graceful_shutdown
)
{
auto
src
=
sys
.
spawn
(
file_reader
,
50u
);
auto
stg
=
sys
.
spawn
(
filter
);
auto
snk
=
sys
.
spawn
(
sum_up
);
CAF_MESSAGE
(
CAF_ARG
(
self
)
<<
CAF_ARG
(
src
)
<<
CAF_ARG
(
stg
)
<<
CAF_ARG
(
snk
));
CAF_MESSAGE
(
"initiate stream handshake"
);
self
->
send
(
snk
*
stg
*
src
,
"numbers.txt"
);
expect
((
string
),
from
(
self
).
to
(
src
).
with
(
"numbers.txt"
));
expect
((
open_stream_msg
),
from
(
self
).
to
(
stg
));
expect
((
open_stream_msg
),
from
(
self
).
to
(
snk
));
expect
((
upstream_msg
::
ack_open
),
from
(
snk
).
to
(
stg
));
expect
((
upstream_msg
::
ack_open
),
from
(
stg
).
to
(
src
));
CAF_MESSAGE
(
"start data transmission (a single batch) and stop the stage"
);
anon_send_exit
(
stg
,
exit_reason
::
user_shutdown
);
CAF_MESSAGE
(
"expect the stage to still transfer pending items to the sink"
);
run
();
CAF_MESSAGE
(
"check sink result"
);
CAF_CHECK_EQUAL
(
deref
<
sum_up_actor
>
(
snk
).
state
.
x
,
625
);
}
CAF_TEST_FIXTURE_SCOPE_END
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment