Fix unit test (#1730)

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2022-04-01 14:46:12 +08:00
committed by GitHub
parent 2b9fc26c38
commit 9c2d526a11
2 changed files with 1 additions and 2 deletions

View File

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

View File

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