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
0c5fa1b5
Commit
0c5fa1b5
authored
Nov 03, 2020
by
Bastian Köcher
Browse files
Fix test
parent
11fce278
Pipeline
#113025
failed with stages
in 7 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/core/runtime-api/src/lib.rs
View file @
0c5fa1b5
...
@@ -180,7 +180,7 @@ mod tests {
...
@@ -180,7 +180,7 @@ mod tests {
ValidatorId
,
ValidatorIndex
,
GroupRotationInfo
,
CoreState
,
PersistedValidationData
,
ValidatorId
,
ValidatorIndex
,
GroupRotationInfo
,
CoreState
,
PersistedValidationData
,
Id
as
ParaId
,
OccupiedCoreAssumption
,
ValidationData
,
SessionIndex
,
ValidationCode
,
Id
as
ParaId
,
OccupiedCoreAssumption
,
ValidationData
,
SessionIndex
,
ValidationCode
,
CommittedCandidateReceipt
,
CandidateEvent
,
AuthorityDiscoveryId
,
InboundDownwardMessage
,
CommittedCandidateReceipt
,
CandidateEvent
,
AuthorityDiscoveryId
,
InboundDownwardMessage
,
BlockNumber
,
BlockNumber
,
CheckValidationOutputsError
,
};
};
use
polkadot_node_subsystem_test_helpers
as
test_helpers
;
use
polkadot_node_subsystem_test_helpers
as
test_helpers
;
use
sp_core
::
testing
::
TaskExecutor
;
use
sp_core
::
testing
::
TaskExecutor
;
...
@@ -197,7 +197,7 @@ mod tests {
...
@@ -197,7 +197,7 @@ mod tests {
session_index_for_child
:
SessionIndex
,
session_index_for_child
:
SessionIndex
,
validation_code
:
HashMap
<
ParaId
,
ValidationCode
>
,
validation_code
:
HashMap
<
ParaId
,
ValidationCode
>
,
historical_validation_code
:
HashMap
<
ParaId
,
Vec
<
(
BlockNumber
,
ValidationCode
)
>>
,
historical_validation_code
:
HashMap
<
ParaId
,
Vec
<
(
BlockNumber
,
ValidationCode
)
>>
,
validation_outputs_results
:
HashMap
<
ParaId
,
bool
>
,
validation_outputs_results
:
HashMap
<
ParaId
,
Result
<
(),
CheckValidationOutputsError
>
>
,
candidate_pending_availability
:
HashMap
<
ParaId
,
CommittedCandidateReceipt
>
,
candidate_pending_availability
:
HashMap
<
ParaId
,
CommittedCandidateReceipt
>
,
candidate_events
:
Vec
<
CandidateEvent
>
,
candidate_events
:
Vec
<
CandidateEvent
>
,
dmq_contents
:
HashMap
<
ParaId
,
Vec
<
InboundDownwardMessage
>>
,
dmq_contents
:
HashMap
<
ParaId
,
Vec
<
InboundDownwardMessage
>>
,
...
@@ -254,7 +254,7 @@ mod tests {
...
@@ -254,7 +254,7 @@ mod tests {
&
self
,
&
self
,
para_id
:
ParaId
,
para_id
:
ParaId
,
_commitments
:
polkadot_primitives
::
v1
::
ValidationOutputs
,
_commitments
:
polkadot_primitives
::
v1
::
ValidationOutputs
,
)
->
bool
{
)
->
Result
<
(),
CheckValidationOutputsError
>
{
self
.validation_outputs_results
self
.validation_outputs_results
.get
(
&
para_id
)
.get
(
&
para_id
)
.cloned
()
.cloned
()
...
@@ -470,8 +470,8 @@ mod tests {
...
@@ -470,8 +470,8 @@ mod tests {
let
para_b
=
6
.into
();
let
para_b
=
6
.into
();
let
commitments
=
polkadot_primitives
::
v1
::
ValidationOutputs
::
default
();
let
commitments
=
polkadot_primitives
::
v1
::
ValidationOutputs
::
default
();
runtime_api
.validation_outputs_results
.insert
(
para_a
,
false
);
runtime_api
.validation_outputs_results
.insert
(
para_a
,
Err
(
CheckValidationOutputsError
::
HeadDataTooLarge
)
);
runtime_api
.validation_outputs_results
.insert
(
para_b
,
true
);
runtime_api
.validation_outputs_results
.insert
(
para_b
,
Ok
(())
);
let
runtime_api
=
Arc
::
new
(
runtime_api
);
let
runtime_api
=
Arc
::
new
(
runtime_api
);
...
...
Bastian Köcher
@bkchr
mentioned in commit
0beeeea4
·
Nov 03, 2020
mentioned in commit
0beeeea4
mentioned in commit 0beeeea44766df33de61c4f26bd0c33986ef0ace
Toggle commit list
gabriel klawitter
🏄
@gabriel
mentioned in commit
d19ca7ce
·
Nov 03, 2020
mentioned in commit
d19ca7ce
mentioned in commit d19ca7ce00657145bef0466435f2e3b9b81a5157
Toggle commit list
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