Skip to content

Commit 6c2a75e

Browse files
authored
Merge pull request #969 from danielhelfand/timeout_err_msg
Change Increase to Increasing in Timeout Exceeded Error Message
2 parents b9eef79 + a999403 commit 6c2a75e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func (e *Executor) setTimeoutToDeadlineIfOnlyDeadlineIsSet() {
446446
func (e *Executor) setupExitCode(ctx context.Context) {
447447
if ctx.Err() != nil {
448448
e.exitCode = exitcodes.Timeout
449-
e.log.Errorf("Timeout exceeded: try increase it by passing --timeout option")
449+
e.log.Errorf("Timeout exceeded: try increasing it by passing --timeout option")
450450
return
451451
}
452452

test/run_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ func TestSymlinkLoop(t *testing.T) {
4444
func TestDeadline(t *testing.T) {
4545
testshared.NewLintRunner(t).Run("--deadline=1ms", getProjectRoot()).
4646
ExpectExitCode(exitcodes.Timeout).
47-
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
47+
ExpectOutputContains(`Timeout exceeded: try increasing it by passing --timeout option`)
4848
}
4949

5050
func TestTimeout(t *testing.T) {
5151
testshared.NewLintRunner(t).Run("--timeout=1ms", getProjectRoot()).
5252
ExpectExitCode(exitcodes.Timeout).
53-
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
53+
ExpectOutputContains(`Timeout exceeded: try increasing it by passing --timeout option`)
5454
}
5555

5656
func TestTimeoutInConfig(t *testing.T) {
@@ -85,7 +85,7 @@ func TestTimeoutInConfig(t *testing.T) {
8585
for _, c := range cases {
8686
// Run with disallowed option set only in config
8787
r.RunWithYamlConfig(c.cfg, withCommonRunArgs(minimalPkg)...).ExpectExitCode(exitcodes.Timeout).
88-
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
88+
ExpectOutputContains(`Timeout exceeded: try increasing it by passing --timeout option`)
8989
}
9090
}
9191

0 commit comments

Comments
 (0)