Merge pull request #46907 from zhangxiaoyu-zidif/add-comment-for-genutils

Automatic merge from submit-queue (batch tested with PRs 46787, 46876, 46621, 46907, 46819)

Add fatal message

**What this PR does / why we need it**:
Add fatal message

**Release note**:

```release-note
NONE
```
pull/6/head
Kubernetes Submit Queue 2017-06-06 02:21:57 -07:00 committed by GitHub
commit 21b6a336f5
1 changed files with 2 additions and 2 deletions

View File

@ -30,13 +30,13 @@ func TestValidDir(t *testing.T) {
func TestInvalidDir(t *testing.T) {
_, err := OutDir("./nondir")
if err == nil {
t.Fatal(err)
t.Fatal("expected an error")
}
}
func TestNotDir(t *testing.T) {
_, err := OutDir("./genutils_test.go")
if err == nil {
t.Fatal(err)
t.Fatal("expected an error")
}
}