Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
cc1224e6
Commit
cc1224e6
authored
Mar 06, 2020
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: flaky test
parent
44ae8f1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
internal/session/sessionwantsender_test.go
internal/session/sessionwantsender_test.go
+4
-4
No files found.
internal/session/sessionwantsender_test.go
View file @
cc1224e6
...
@@ -658,7 +658,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
...
@@ -658,7 +658,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
}
}
// Wait for processing to complete
// Wait for processing to complete
time
.
Sleep
(
5
*
time
.
Millisecond
)
time
.
Sleep
(
10
*
time
.
Millisecond
)
// Session should remove peer
// Session should remove peer
if
has
:=
fpm
.
HasPeer
(
p
);
has
{
if
has
:=
fpm
.
HasPeer
(
p
);
has
{
...
@@ -670,7 +670,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
...
@@ -670,7 +670,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
spm
.
Update
(
p
,
[]
cid
.
Cid
{},
cids
[
:
1
],
[]
cid
.
Cid
{})
spm
.
Update
(
p
,
[]
cid
.
Cid
{},
cids
[
:
1
],
[]
cid
.
Cid
{})
// Wait for processing to complete
// Wait for processing to complete
time
.
Sleep
(
5
*
time
.
Millisecond
)
time
.
Sleep
(
10
*
time
.
Millisecond
)
// Peer should be available
// Peer should be available
if
has
:=
fpm
.
HasPeer
(
p
);
!
has
{
if
has
:=
fpm
.
HasPeer
(
p
);
!
has
{
...
@@ -686,7 +686,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
...
@@ -686,7 +686,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
}
}
// Wait for processing to complete
// Wait for processing to complete
time
.
Sleep
(
5
*
time
.
Millisecond
)
time
.
Sleep
(
10
*
time
.
Millisecond
)
// Peer should be available
// Peer should be available
if
has
:=
fpm
.
HasPeer
(
p
);
!
has
{
if
has
:=
fpm
.
HasPeer
(
p
);
!
has
{
...
@@ -700,7 +700,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
...
@@ -700,7 +700,7 @@ func TestConsecutiveDontHaveReinstateAfterRemoval(t *testing.T) {
}
}
// Wait for processing to complete
// Wait for processing to complete
time
.
Sleep
(
5
*
time
.
Millisecond
)
time
.
Sleep
(
10
*
time
.
Millisecond
)
// Session should remove peer
// Session should remove peer
if
has
:=
fpm
.
HasPeer
(
p
);
has
{
if
has
:=
fpm
.
HasPeer
(
p
);
has
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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