mirror of https://github.com/docker/cli.git
e2e/global: fix n-constant format string in call (govet)
e2e/global/cli_test.go:217:28: printf: non-constant format string in call to gotest.tools/v3/poll.Continue (govet)
return poll.Continue(err.Error())
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9c87891278
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
002cfcde85
commit
4b71d0d1af
|
@ -214,7 +214,7 @@ func TestPromptExitCode(t *testing.T) {
|
||||||
default:
|
default:
|
||||||
|
|
||||||
if err := bufioWriter.Flush(); err != nil {
|
if err := bufioWriter.Flush(); err != nil {
|
||||||
return poll.Continue(err.Error())
|
return poll.Continue("%v", err)
|
||||||
}
|
}
|
||||||
if strings.Contains(buf.String(), "[y/N]") {
|
if strings.Contains(buf.String(), "[y/N]") {
|
||||||
return poll.Success()
|
return poll.Success()
|
||||||
|
|
Loading…
Reference in New Issue