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
84addc19
Commit
84addc19
authored
Mar 04, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implicitly wait for I/O in basp test
parent
c054ed29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
libcaf_io/test/basp.cpp
libcaf_io/test/basp.cpp
+6
-3
No files found.
libcaf_io/test/basp.cpp
View file @
84addc19
...
...
@@ -312,7 +312,8 @@ public:
std
::
pair
<
basp
::
header
,
buffer
>
read_from_out_buf
(
connection_handle
hdl
)
{
CAF_MESSAGE
(
"read from output buffer for connection "
<<
hdl
.
id
());
auto
&
buf
=
mpx_
->
output_buffer
(
hdl
);
CAF_REQUIRE
(
buf
.
size
()
>=
basp
::
header_size
);
while
(
buf
.
size
()
<
basp
::
header_size
)
mpx
()
->
exec_runnable
();
auto
result
=
from_buf
(
buf
);
buf
.
erase
(
buf
.
begin
(),
buf
.
begin
()
+
basp
::
header_size
+
result
.
first
.
payload_len
);
...
...
@@ -368,8 +369,9 @@ public:
buffer
buf
;
this_
->
to_payload
(
buf
,
xs
...);
buffer
&
ob
=
this_
->
mpx
()
->
output_buffer
(
hdl
);
while
(
ob
.
size
()
<
basp
::
header_size
)
this_
->
mpx
()
->
exec_runnable
();
CAF_MESSAGE
(
"output buffer has "
<<
ob
.
size
()
<<
" bytes"
);
CAF_REQUIRE
(
ob
.
size
()
>=
basp
::
header_size
);
basp
::
header
hdr
;
{
// lifetime scope of source
binary_deserializer
source
{
this_
->
mpx
(),
ob
.
data
(),
ob
.
size
()};
...
...
@@ -609,7 +611,8 @@ CAF_TEST(remote_actor_and_send) {
);
CAF_MESSAGE
(
"send message to proxy"
);
anon_send
(
actor_cast
<
actor
>
(
result
),
42
);
mpx
()
->
exec_runnable
();
// process forwarded message in basp_broker
mpx
()
->
flush_runnables
();
// mpx()->exec_runnable(); // process forwarded message in basp_broker
mock
()
.
expect
(
remote_hdl
(
0
),
basp
::
message_type
::
dispatch_message
,
any_vals
,
uint64_t
{
0
},
...
...
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