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-dms3
Commits
2f260ca5
Commit
2f260ca5
authored
Jul 22, 2017
by
Jeromy Johnson
Committed by
GitHub
Jul 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4081 from ipfs/fix/2478/316432988
remove `-f` flags from calls to init
parents
c854d2a8
87f02e53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/bench/bench_cli_ipfs_add/main.go
test/bench/bench_cli_ipfs_add/main.go
+1
-1
test/bench/offline_add/main.go
test/bench/offline_add/main.go
+1
-1
No files found.
test/bench/bench_cli_ipfs_add/main.go
View file @
2f260ca5
...
@@ -64,7 +64,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
...
@@ -64,7 +64,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
}
}
}
}
initCmd
:=
exec
.
Command
(
"ipfs"
,
"init"
,
"-f"
,
"-b=1024"
)
initCmd
:=
exec
.
Command
(
"ipfs"
,
"init"
,
"-b=1024"
)
setupCmd
(
initCmd
)
setupCmd
(
initCmd
)
if
err
:=
initCmd
.
Run
();
err
!=
nil
{
if
err
:=
initCmd
.
Run
();
err
!=
nil
{
benchmarkError
=
err
benchmarkError
=
err
...
...
test/bench/offline_add/main.go
View file @
2f260ca5
...
@@ -48,7 +48,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
...
@@ -48,7 +48,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
cmd
.
Env
=
env
cmd
.
Env
=
env
}
}
cmd
:=
exec
.
Command
(
"ipfs"
,
"init"
,
"-f"
,
"-b=1024"
)
cmd
:=
exec
.
Command
(
"ipfs"
,
"init"
,
"-b=1024"
)
setupCmd
(
cmd
)
setupCmd
(
cmd
)
if
err
:=
cmd
.
Run
();
err
!=
nil
{
if
err
:=
cmd
.
Run
();
err
!=
nil
{
b
.
Fatal
(
err
)
b
.
Fatal
(
err
)
...
...
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