mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-29 23:49:08 -04:00
Rename deadline option to timeout and mark deadline as deprecated. (#793)
This commit is contained in:
parent
ee2e17f7e9
commit
0cc87df732
7 changed files with 26 additions and 12 deletions
test
|
@ -44,7 +44,14 @@ func TestSymlinkLoop(t *testing.T) {
|
|||
func TestDeadline(t *testing.T) {
|
||||
testshared.NewLintRunner(t).Run("--deadline=1ms", getProjectRoot()).
|
||||
ExpectExitCode(exitcodes.Timeout).
|
||||
ExpectOutputContains(`Deadline exceeded: try increase it by passing --deadline option`)
|
||||
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`).
|
||||
ExpectOutputContains(`Flag --deadline has been deprecated, flag will be removed soon, please, use .golangci.yml config`)
|
||||
}
|
||||
|
||||
func TestTimeout(t *testing.T) {
|
||||
testshared.NewLintRunner(t).Run("--timeout=1ms", getProjectRoot()).
|
||||
ExpectExitCode(exitcodes.Timeout).
|
||||
ExpectOutputContains(`Timeout exceeded: try increase it by passing --timeout option`)
|
||||
}
|
||||
|
||||
func TestTestsAreLintedByDefault(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue