Merge pull request #969 from danielhelfand/timeout_err_msg
Change Increase to Increasing in Timeout Exceeded Error Message
This commit is contained in:
commit
6c2a75eff5
@ -446,7 +446,7 @@ func (e *Executor) setTimeoutToDeadlineIfOnlyDeadlineIsSet() {
|
|||||||
func (e *Executor) setupExitCode(ctx context.Context) {
|
func (e *Executor) setupExitCode(ctx context.Context) {
|
||||||
if ctx.Err() != nil {
|
if ctx.Err() != nil {
|
||||||
e.exitCode = exitcodes.Timeout
|
e.exitCode = exitcodes.Timeout
|
||||||
e.log.Errorf("Timeout exceeded: try increase it by passing --timeout option")
|
e.log.Errorf("Timeout exceeded: try increasing it by passing --timeout option")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,13 +44,13 @@ func TestSymlinkLoop(t *testing.T) {
|
|||||||
func TestDeadline(t *testing.T) {
|
func TestDeadline(t *testing.T) {
|
||||||
testshared.NewLintRunner(t).Run("--deadline=1ms", getProjectRoot()).
|
testshared.NewLintRunner(t).Run("--deadline=1ms", getProjectRoot()).
|
||||||
ExpectExitCode(exitcodes.Timeout).
|
ExpectExitCode(exitcodes.Timeout).
|
||||||
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
|
ExpectOutputContains(`Timeout exceeded: try increasing it by passing --timeout option`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTimeout(t *testing.T) {
|
func TestTimeout(t *testing.T) {
|
||||||
testshared.NewLintRunner(t).Run("--timeout=1ms", getProjectRoot()).
|
testshared.NewLintRunner(t).Run("--timeout=1ms", getProjectRoot()).
|
||||||
ExpectExitCode(exitcodes.Timeout).
|
ExpectExitCode(exitcodes.Timeout).
|
||||||
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
|
ExpectOutputContains(`Timeout exceeded: try increasing it by passing --timeout option`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTimeoutInConfig(t *testing.T) {
|
func TestTimeoutInConfig(t *testing.T) {
|
||||||
@ -85,7 +85,7 @@ func TestTimeoutInConfig(t *testing.T) {
|
|||||||
for _, c := range cases {
|
for _, c := range cases {
|
||||||
// Run with disallowed option set only in config
|
// Run with disallowed option set only in config
|
||||||
r.RunWithYamlConfig(c.cfg, withCommonRunArgs(minimalPkg)...).ExpectExitCode(exitcodes.Timeout).
|
r.RunWithYamlConfig(c.cfg, withCommonRunArgs(minimalPkg)...).ExpectExitCode(exitcodes.Timeout).
|
||||||
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
|
ExpectOutputContains(`Timeout exceeded: try increasing it by passing --timeout option`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user