Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubo_final
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anastasiia Chirikova
kubo_final
Commits
06c013bf
Commit
06c013bf
authored
9 years ago
by
Jeromy Johnson
Browse files
Options
Downloads
Patches
Plain Diff
cleanup and more testing
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
9e7e826b
Branches
Branches containing commit
No related tags found
1 merge request
!1
New
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/commands/add.go
+1
-1
1 addition, 1 deletion
core/commands/add.go
exchange/bitswap/workers.go
+1
-1
1 addition, 1 deletion
exchange/bitswap/workers.go
test/sharness/t0250-files-api.sh
+14
-1
14 additions, 1 deletion
test/sharness/t0250-files-api.sh
with
16 additions
and
3 deletions
core/commands/add.go
+
1
−
1
View file @
06c013bf
...
@@ -45,7 +45,7 @@ remains to be implemented.
...
@@ -45,7 +45,7 @@ remains to be implemented.
Options
:
[]
cmds
.
Option
{
Options
:
[]
cmds
.
Option
{
cmds
.
OptionRecursivePath
,
// a builtin option that allows recursive paths (-r, --recursive)
cmds
.
OptionRecursivePath
,
// a builtin option that allows recursive paths (-r, --recursive)
cmds
.
BoolOption
(
quietOptionName
,
"q"
,
"Write minimal output"
),
cmds
.
BoolOption
(
quietOptionName
,
"q"
,
"Write minimal output"
),
cmds
.
BoolOption
(
silentOptionName
,
"x"
,
"Write no output"
),
cmds
.
BoolOption
(
silentOptionName
,
"Write no output"
),
cmds
.
BoolOption
(
progressOptionName
,
"p"
,
"Stream progress data"
),
cmds
.
BoolOption
(
progressOptionName
,
"p"
,
"Stream progress data"
),
cmds
.
BoolOption
(
trickleOptionName
,
"t"
,
"Use trickle-dag format for dag generation"
),
cmds
.
BoolOption
(
trickleOptionName
,
"t"
,
"Use trickle-dag format for dag generation"
),
cmds
.
BoolOption
(
onlyHashOptionName
,
"n"
,
"Only chunk and hash - do not write to disk"
),
cmds
.
BoolOption
(
onlyHashOptionName
,
"n"
,
"Only chunk and hash - do not write to disk"
),
...
...
This diff is collapsed.
Click to expand it.
exchange/bitswap/workers.go
+
1
−
1
View file @
06c013bf
...
@@ -89,7 +89,7 @@ func (bs *Bitswap) provideWorker(px process.Process) {
...
@@ -89,7 +89,7 @@ func (bs *Bitswap) provideWorker(px process.Process) {
defer
cancel
()
defer
cancel
()
if
err
:=
bs
.
network
.
Provide
(
ctx
,
k
);
err
!=
nil
{
if
err
:=
bs
.
network
.
Provide
(
ctx
,
k
);
err
!=
nil
{
//
log.Error(err)
log
.
Error
(
err
)
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
test/sharness/t0250-files-api.sh
+
14
−
1
View file @
06c013bf
...
@@ -317,7 +317,13 @@ test_files_api() {
...
@@ -317,7 +317,13 @@ test_files_api() {
'
'
test_expect_success
"write 'no-flush' succeeds"
'
test_expect_success
"write 'no-flush' succeeds"
'
echo "testing" | ipfs files write -f -e /cats/walrus
echo "testing" | ipfs files write -f=false -e /cats/walrus
'
test_expect_success
"root hash not bubbled up yet"
'
test -z "$ONLINE" ||
(ipfs refs local > refsout &&
test_expect_code 1 grep QmcwKfTMCT7AaeiD92hWjnZn9b6eh9NxnhfSzN5x2vnDpt refsout)
'
'
test_expect_success
"changes bubbled up to root on inspection"
'
test_expect_success
"changes bubbled up to root on inspection"
'
...
@@ -350,7 +356,14 @@ test_files_api() {
...
@@ -350,7 +356,14 @@ test_files_api() {
# test offline and online
# test offline and online
test_files_api
test_files_api
test_expect_success
"clean up objects from previous test run"
'
ipfs repo gc
'
test_launch_ipfs_daemon
test_launch_ipfs_daemon
ONLINE
=
1
# set online flag so tests can easily tell
test_files_api
test_files_api
test_kill_ipfs_daemon
test_kill_ipfs_daemon
test_done
test_done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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