Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
6c2a7532
Unverified
Commit
6c2a7532
authored
Oct 28, 2020
by
Sergey Pepyakin
Committed by
GitHub
Oct 28, 2020
Browse files
Update to the latest changes on master (#1866)
parent
ed759c75
Pipeline
#112384
passed with stages
in 17 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/core/runtime-api/src/lib.rs
View file @
6c2a7532
...
...
@@ -632,19 +632,25 @@ mod tests {
#[test]
fn
requests_dmq_contents
()
{
let
(
ctx
,
mut
ctx_handle
)
=
test_helpers
::
make_subsystem_context
(
TaskExecutor
::
new
());
let
mut
runtime_api
=
MockRuntimeApi
::
default
();
let
relay_parent
=
[
1
;
32
]
.into
();
let
para_a
=
5
.into
();
let
para_b
=
6
.into
();
runtime_api
.dmq_contents
.insert
(
para_a
,
vec!
[]);
runtime_api
.dmq_contents
.insert
(
para_b
,
vec!
[
InboundDownwardMessage
{
sent_at
:
228
,
msg
:
b"Novus Ordo Seclorum"
.to_vec
(),
}],
);
let
runtime_api
=
Arc
::
new
({
let
mut
runtime_api
=
MockRuntimeApi
::
default
();
runtime_api
.dmq_contents
.insert
(
para_a
,
vec!
[]);
runtime_api
.dmq_contents
.insert
(
para_b
,
vec!
[
InboundDownwardMessage
{
sent_at
:
228
,
msg
:
b"Novus Ordo Seclorum"
.to_vec
(),
}],
);
runtime_api
});
let
subsystem
=
RuntimeApiSubsystem
::
new
(
runtime_api
.clone
(),
Metrics
(
None
));
let
subsystem_task
=
run
(
ctx
,
subsystem
)
.map
(|
x
|
x
.unwrap
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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