Skip to content

Commit

Permalink
fix(goctl): fix the unit test bug of goctl (#2458)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenquan committed Sep 27, 2022
1 parent 63cfe60 commit 4f6a900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/goctl/model/sql/gen/gen_test.go
Expand Up @@ -119,7 +119,7 @@ func TestFolderName(t *testing.T) {

pkg := g.pkg

err = g.StartFromDDL(sqlFile, true, "go_zero")
err = g.StartFromDDL(sqlFile, true, true, "go_zero")
assert.Nil(t, err)
assert.True(t, func() bool {
_, err := os.Stat(filepath.Join(camelDir, "TestUserModel.go"))
Expand All @@ -132,7 +132,7 @@ func TestFolderName(t *testing.T) {
})
assert.Nil(t, err)

err = g.StartFromDDL(sqlFile, true, "go_zero")
err = g.StartFromDDL(sqlFile, true, true, "go_zero")
assert.Nil(t, err)
assert.True(t, func() bool {
_, err := os.Stat(filepath.Join(snakeDir, "test_user_model.go"))
Expand Down

0 comments on commit 4f6a900

Please sign in to comment.