Fix unit test (#1730)

Co-authored-by: anqiansong <anqiansong@bytedance.com>
master
anqiansong 3 years ago committed by GitHub
parent 2b9fc26c38
commit 9c2d526a11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,6 @@ func TestImportRegex(t *testing.T) {
{`"../foo/bar.api"`, true}, {`"../foo/bar.api"`, true},
{`"../../foo/bar.api"`, true}, {`"../../foo/bar.api"`, true},
{`"bar..api"`, false},
{`"//bar.api"`, false}, {`"//bar.api"`, false},
{`"/foo/foo_bar.api"`, true}, {`"/foo/foo_bar.api"`, true},
} }

@ -17,7 +17,7 @@ import (
func TestRpcGenerate(t *testing.T) { func TestRpcGenerate(t *testing.T) {
_ = Clean() _ = Clean()
g := NewGenerator("gozero") g := NewGenerator("gozero", true)
err := g.Prepare() err := g.Prepare()
if err != nil { if err != nil {
logx.Error(err) logx.Error(err)

Loading…
Cancel
Save