Sfoglia il codice sorgente

Fix unit test (#1730)

Co-authored-by: anqiansong <anqiansong@bytedance.com>
anqiansong 3 anni fa
parent
commit
9c2d526a11

+ 0 - 1
tools/goctl/api/parser/g4/gen/api/baseparser_test.go

@@ -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},
 	}

+ 1 - 1
tools/goctl/rpc/generator/gen_test.go

@@ -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)