Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
62c576e7
Unverified
Commit
62c576e7
authored
Feb 22, 2021
by
acud
Committed by
GitHub
Feb 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pullstorage: remove flaky test (#1309)
parent
c3f52524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
pullstorage_test.go
pkg/pullsync/pullstorage/pullstorage_test.go
+0
-27
No files found.
pkg/pullsync/pullstorage/pullstorage_test.go
View file @
62c576e7
...
@@ -127,33 +127,6 @@ func TestIntervalChunks_GetChunksLater(t *testing.T) {
...
@@ -127,33 +127,6 @@ func TestIntervalChunks_GetChunksLater(t *testing.T) {
}
}
}
}
// Get some descriptors, but then let the iterator time out and return just the stuff we got in the beginning
func
TestIntervalChunks_NoChunksLater
(
t
*
testing
.
T
)
{
desc
:=
someDescriptors
(
0
,
2
)
ps
,
db
:=
newPullStorage
(
t
,
mock
.
WithSubscribePullChunks
(
desc
...
),
mock
.
WithPartialInterval
(
true
))
go
func
()
{
<-
time
.
After
(
600
*
time
.
Millisecond
)
// add chunks to subscribe pull on the storage mock
db
.
MorePull
(
someDescriptors
(
1
,
3
,
4
)
...
)
}()
addrs
,
topmost
,
err
:=
ps
.
IntervalChunks
(
context
.
Background
(),
0
,
0
,
5
,
limit
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
if
l
:=
len
(
addrs
);
l
!=
2
{
t
.
Fatalf
(
"want %d addrs but got %d"
,
2
,
l
)
}
// highest chunk we sent had BinID 3
exp
:=
uint64
(
3
)
if
topmost
!=
exp
{
t
.
Fatalf
(
"expected topmost %d but got %d"
,
exp
,
topmost
)
}
}
func
TestIntervalChunks_Blocking
(
t
*
testing
.
T
)
{
func
TestIntervalChunks_Blocking
(
t
*
testing
.
T
)
{
desc
:=
someDescriptors
(
0
,
2
)
desc
:=
someDescriptors
(
0
,
2
)
ps
,
_
:=
newPullStorage
(
t
,
mock
.
WithSubscribePullChunks
(
desc
...
),
mock
.
WithPartialInterval
(
true
))
ps
,
_
:=
newPullStorage
(
t
,
mock
.
WithSubscribePullChunks
(
desc
...
),
mock
.
WithPartialInterval
(
true
))
...
...
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