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