Skip to content

Commit

Permalink
Fix asyncWaitForStdoutAndRun error message
Browse files Browse the repository at this point in the history
Unfortunately `require.Fail` first string argument isn't the format
string, it is the second one. The first one is general error message
string. Same goes for Failf, which just happens to require the actual
format message as argument.
  • Loading branch information
mstoykov committed Jan 13, 2023
1 parent 85ff87c commit 4fcfdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func asyncWaitForStdoutAndRun(
ts.outMutex.Unlock()
t.Log(stdOut)
require.FailNow(
t, "did not find the text '%s' in the process stdout after %d attempts (%s)",
t, "expected output not found", "did not find the text '%s' in the process stdout after %d attempts (%s)",
expText, attempts, time.Duration(attempts)*interval,
)
}()
Expand Down

0 comments on commit 4fcfdfa

Please sign in to comment.