Fix unit test (#1730)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user