improve typecheck errors parsing

This commit is contained in:
Denis Isaev 2018-11-23 18:23:24 +03:00 committed by Isaev Denis
parent 55a18ae18a
commit dba3907ff3
7 changed files with 72 additions and 42 deletions

View file

@ -24,7 +24,8 @@ func TestEmptyDirRun(t *testing.T) {
func TestNotExistingDirRun(t *testing.T) {
testshared.NewLintRunner(t).Run(getTestDataDir("no_such_dir")).
ExpectHasIssue(`cannot find package \"./testdata/no_such_dir\"`)
ExpectExitCode(exitcodes.WarningInTest).
ExpectOutputContains(`cannot find package \"./testdata/no_such_dir\"`)
}
func TestSymlinkLoop(t *testing.T) {