Fixed test deadline unit test
This commit is contained in:
parent
ecccb24cb7
commit
93c0eebfa1
@ -44,8 +44,7 @@ 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 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) {
|
func TestTimeout(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user