Commit 21b6a336 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents 3fe8df76 9121ee63
...@@ -30,13 +30,13 @@ func TestValidDir(t *testing.T) { ...@@ -30,13 +30,13 @@ func TestValidDir(t *testing.T) {
func TestInvalidDir(t *testing.T) { func TestInvalidDir(t *testing.T) {
_, err := OutDir("./nondir") _, err := OutDir("./nondir")
if err == nil { if err == nil {
t.Fatal(err) t.Fatal("expected an error")
} }
} }
func TestNotDir(t *testing.T) { func TestNotDir(t *testing.T) {
_, err := OutDir("./genutils_test.go") _, err := OutDir("./genutils_test.go")
if err == nil { if err == nil {
t.Fatal(err) t.Fatal("expected an error")
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment