Skip to content

Commit

Permalink
fix: change fmt style
Browse files Browse the repository at this point in the history
  • Loading branch information
gongna-au committed Oct 5, 2023
1 parent 7cda02d commit 49dbf00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions conf/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@ logging_config:
sql_log_enabled: false
sql_log_name: sql.log
physical_sql_log_name: physql.log

stats:
service: "TestService"
stats_enable: false
9 changes: 5 additions & 4 deletions test/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ import (
)

import (
"github.com/arana-db/parser"

_ "github.com/go-sql-driver/mysql"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
Expand All @@ -45,6 +42,7 @@ import (
"github.com/arana-db/arana/pkg/runtime"
"github.com/arana-db/arana/pkg/util/rand2"
utils "github.com/arana-db/arana/pkg/util/tableprint"
"github.com/arana-db/parser"
)

type IntegrationSuite struct {
Expand Down Expand Up @@ -1250,7 +1248,10 @@ func (s *IntegrationSuite) TestCompat80() {
} {
t.Run(it.sql, func(t *testing.T) {
rows, err := db.Query(it.sql)
assert.NoError(t, err)
if err != nil {
t.Fatalf("Failed to execute query: %v", err) // 这里使用t.Fatalf停止当前的测试,并报告错误。
return
}
defer rows.Close()
})
}
Expand Down

0 comments on commit 49dbf00

Please sign in to comment.