Merge PR #5192: golangcI-lint updates & set static version to 1.19
This commit is contained in:
committed by
Alexander Bezobchuk
parent
fbd551da98
commit
9f3789157e
@@ -12,7 +12,6 @@ import (
|
||||
|
||||
// ExecuteT executes the command, pipes any input to STDIN and return STDOUT,
|
||||
// logging STDOUT/STDERR to t.
|
||||
// nolint: errcheck
|
||||
func ExecuteT(t *testing.T, cmd, input string) (stdout, stderr string) {
|
||||
t.Log("Running", cmd)
|
||||
|
||||
|
||||
+2
-2
@@ -99,7 +99,7 @@ func waitForHeight(height int64, url string) {
|
||||
|
||||
for {
|
||||
// Since this is in a testing file we are accepting nolint to be passed
|
||||
res, err = http.Get(url) //nolint:gosec
|
||||
res, err = http.Get(url) // nolint:gosec
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -151,7 +151,7 @@ func WaitForStart(url string) {
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
|
||||
var res *http.Response
|
||||
res, err = http.Get(url) //nolint:gosec Error is arising in testing files, accepting nolint
|
||||
res, err = http.Get(url) // nolint:gosec
|
||||
if err != nil || res == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user