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
6c85c5c8
Unverified
Commit
6c85c5c8
authored
Jun 14, 2020
by
Zahoor Mohamed
Committed by
GitHub
Jun 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix coverage report error (#288)
parent
5eaf38e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
gc_test.go
pkg/localstore/gc_test.go
+18
-12
No files found.
pkg/localstore/gc_test.go
View file @
6c85c5c8
...
...
@@ -698,7 +698,6 @@ func addRandomChunks(t *testing.T, count int, db *DB, pin bool) []swarm.Chunk {
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
}
err
=
db
.
Set
(
context
.
Background
(),
storage
.
ModeSetSyncPull
,
ch
.
Address
())
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -711,6 +710,13 @@ func addRandomChunks(t *testing.T, count int, db *DB, pin bool) []swarm.Chunk {
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
}
else
{
// Non pinned chunks could be GC'd by the time they reach here.
// so it is okay to ignore the error
_
=
db
.
Set
(
context
.
Background
(),
storage
.
ModeSetSyncPull
,
ch
.
Address
())
_
=
db
.
Set
(
context
.
Background
(),
storage
.
ModeSetAccess
,
ch
.
Address
())
_
,
_
=
db
.
Get
(
context
.
Background
(),
storage
.
ModeGetRequest
,
ch
.
Address
())
}
chunks
=
append
(
chunks
,
ch
)
}
return
chunks
...
...
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