mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
fix test case
This commit is contained in:
parent
824fa639f0
commit
9428a53176
@ -99,6 +99,7 @@ func TestCheckAndLoadPackageOnGoMod(t *testing.T) {
|
|||||||
for _, v := range astPkgs {
|
for _, v := range astPkgs {
|
||||||
if v.Name == test.pkgName {
|
if v.Name == test.pkgName {
|
||||||
result = true
|
result = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if test.expected != result {
|
if test.expected != result {
|
||||||
@ -212,6 +213,7 @@ type Common struct {
|
|||||||
for _, v := range astPkgs {
|
for _, v := range astPkgs {
|
||||||
if v.Name == test.pkgName {
|
if v.Name == test.pkgName {
|
||||||
result = true
|
result = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if test.expected != result {
|
if test.expected != result {
|
||||||
|
Loading…
Reference in New Issue
Block a user