mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 08:29:58 +08:00
(goctl)fix: api timeout limited during api generation (#4513)
This commit is contained in:
@@ -62,13 +62,13 @@ func TestNewScanner(t *testing.T) {
|
||||
{
|
||||
filename: "foo",
|
||||
src: "",
|
||||
expected: missingInput,
|
||||
expected: "missing input",
|
||||
},
|
||||
}
|
||||
for _, v := range testData {
|
||||
s, err := NewScanner(v.filename, v.src)
|
||||
if err != nil {
|
||||
assert.Equal(t, v.expected.(error).Error(), err.Error())
|
||||
assert.Contains(t, err.Error(), v.expected)
|
||||
} else {
|
||||
assert.Equal(t, v.expected, s.filename)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user