Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
e0a7bc6c
Verified
Commit
e0a7bc6c
authored
4 months ago
by
Michal Kucharczyk
Browse files
Options
Downloads
Patches
Plain Diff
flaky test fixed
parent
a875f180
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/client/transaction-pool/src/fork_aware_txpool/import_notification_sink.rs
+8
-11
8 additions, 11 deletions
...on-pool/src/fork_aware_txpool/import_notification_sink.rs
with
8 additions
and
11 deletions
substrate/client/transaction-pool/src/fork_aware_txpool/import_notification_sink.rs
+
8
−
11
View file @
e0a7bc6c
...
...
@@ -326,6 +326,7 @@ mod tests {
let
j0
=
tokio
::
spawn
(
runnable
);
let
stream
=
ctrl
.event_stream
();
let
stream2
=
ctrl
.event_stream
();
let
mut
v1
=
View
::
new
(
vec!
[(
10
,
1
),
(
10
,
2
),
(
10
,
3
)]);
let
mut
v2
=
View
::
new
(
vec!
[(
20
,
1
),
(
20
,
2
),
(
20
,
6
)]);
...
...
@@ -342,20 +343,16 @@ mod tests {
ctrl
.add_view
(
1000
,
o1
);
ctrl
.add_view
(
2000
,
o2
);
let
j4
=
{
let
ctrl
=
ctrl
.clone
();
tokio
::
spawn
(
async
move
{
tokio
::
time
::
sleep
(
Duration
::
from_millis
(
70
))
.await
;
ctrl
.clean_notified_items
(
&
vec!
[
1
,
3
]);
ctrl
.add_view
(
3000
,
o3
.boxed
());
})
};
let
out
=
stream
.take
(
4
)
.collect
::
<
Vec
<
_
>>
()
.await
;
assert_eq!
(
out
,
vec!
[
1
,
2
,
3
,
6
]);
let
out
=
stream
.take
(
6
)
.collect
::
<
Vec
<
_
>>
()
.await
;
ctrl
.clean_notified_items
(
&
vec!
[
1
,
3
]);
ctrl
.add_view
(
3000
,
o3
.boxed
());
let
out
=
stream2
.take
(
6
)
.collect
::
<
Vec
<
_
>>
()
.await
;
assert_eq!
(
out
,
vec!
[
1
,
2
,
3
,
6
,
1
,
3
]);
drop
(
ctrl
);
futures
::
future
::
join_all
(
vec!
[
j0
,
j1
,
j2
,
j3
,
j4
])
.await
;
drop
(
ctrl
);
futures
::
future
::
join_all
(
vec!
[
j0
,
j1
,
j2
,
j3
])
.await
;
}
#[tokio::test]
...
...
This diff is collapsed.
Click to expand it.
Michal Kucharczyk
@michalkucharczyk
mentioned in commit
41a5d8ec
·
3 months ago
mentioned in commit
41a5d8ec
mentioned in commit 41a5d8ec5f3d3d0ff82899be66113b223395ade5
Toggle commit list
Paritytech CI
@paritytech-ci
mentioned in commit
fe0b4dbd
·
3 months ago
mentioned in commit
fe0b4dbd
mentioned in commit fe0b4dbd01633dbf7d1892e169df6300fd80a005
Toggle commit list
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment