aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerenc Szabo <frncmx@gmail.com>2018-09-29 04:49:15 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-29 04:49:15 +0800
commitd9e324a331788959bb7fb7f388383b1cad4ca65b (patch)
treeec723fbd58942bf37e895aaff8da27c2093105f4
parenta5aaab2f224f0871a838d0a97160c2c002eea4ab (diff)
downloadgo-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.tar
go-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.tar.gz
go-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.tar.bz2
go-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.tar.lz
go-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.tar.xz
go-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.tar.zst
go-tangerine-d9e324a331788959bb7fb7f388383b1cad4ca65b.zip
cmd/swarm: respect --loglevel in run_test helpers (#17739)
When CLI tests were spanning new nodes, the log level verbosity was hard coded as 6. So the Swarm process was always polluting the test output with TRACE level logs. Now `go test -v ./cmd/swarm -loglevel 0` works as expected.
-rw-r--r--cmd/swarm/run_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/swarm/run_test.go b/cmd/swarm/run_test.go
index e2f54c8ff..4be0495f8 100644
--- a/cmd/swarm/run_test.go
+++ b/cmd/swarm/run_test.go
@@ -242,7 +242,7 @@ func existingTestNode(t *testing.T, dir string, bzzaccount string) *testNode {
"--bzzaccount", bzzaccount,
"--bzznetworkid", "321",
"--bzzport", httpPort,
- "--verbosity", "3",
+ "--verbosity", fmt.Sprint(*loglevel),
)
node.Cmd.InputLine(testPassphrase)
defer func() {
@@ -318,7 +318,7 @@ func newTestNode(t *testing.T, dir string) *testNode {
"--bzzaccount", account.Address.String(),
"--bzznetworkid", "321",
"--bzzport", httpPort,
- "--verbosity", "3",
+ "--verbosity", fmt.Sprint(*loglevel),
)
node.Cmd.InputLine(testPassphrase)
defer func() {