Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Martin Pugh
polkadot
Commits
a8206125
Unverified
Commit
a8206125
authored
Dec 09, 2019
by
Ashley
Browse files
Fix availability store tests
parent
112344fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
availability-store/src/worker.rs
View file @
a8206125
...
...
@@ -880,7 +880,7 @@ mod tests {
// chunk topics.
handle
.sender
.unbounded_send
(
msg
)
.unwrap
();
runtime
.block_on
(
r
.unit_error
()
.boxed
()
.compat
())
.unwrap
(
)
.unwrap
()
.unwrap
();
runtime
.block_on
(
r
)
.unwrap
()
.unwrap
();
// Make sure that at this point we are waiting for the appropriate chunk.
assert_eq!
(
...
...
@@ -982,7 +982,7 @@ mod tests {
handle
.sender
.unbounded_send
(
listen_msg_2
)
.unwrap
();
runtime
.block_on
(
r2
.unit_error
()
.boxed
()
.compat
())
.unwrap
(
)
.unwrap
()
.unwrap
();
runtime
.block_on
(
r2
)
.unwrap
()
.unwrap
();
// The gossip sender for this topic left intact => listener not registered.
assert!
(
messages
.messages
.lock
()
.unwrap
()
.contains_key
(
&
topic_2
));
...
...
@@ -998,7 +998,7 @@ mod tests {
});
handle
.sender
.unbounded_send
(
listen_msg_1
)
.unwrap
();
runtime
.block_on
(
r1
.unit_error
()
.boxed
()
.compat
())
.unwrap
(
)
.unwrap
()
.unwrap
();
runtime
.block_on
(
r1
)
.unwrap
()
.unwrap
();
// The gossip sender taken => listener registered.
assert!
(
!
messages
.messages
.lock
()
.unwrap
()
.contains_key
(
&
topic_1
));
...
...
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