Fix easy linter issues
This commit is contained in:
parent
858d8a7ebe
commit
9be127ae40
@ -1,7 +1,6 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@ -51,11 +50,11 @@ func TestDecimal(t *testing.T) {
|
||||
defer tbl.drop(t)
|
||||
|
||||
for _, v := range vals {
|
||||
t.Run(fmt.Sprint(v), func(t *testing.T) {
|
||||
t.Run(v, func(t *testing.T) {
|
||||
suite.insertAndCompare(t, tbl, v)
|
||||
})
|
||||
if !strings.HasPrefix(v, "0") {
|
||||
t.Run(fmt.Sprint("-"+v), func(t *testing.T) {
|
||||
t.Run("-"+v, func(t *testing.T) {
|
||||
suite.insertAndCompare(t, tbl, "-"+v)
|
||||
})
|
||||
}
|
||||
|
@ -195,7 +195,8 @@ func (s *testSuite) expectValue(t *testing.T, tbl *table, exp interface{}) {
|
||||
for {
|
||||
evt, err := suite.reader.ReadEvent()
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to read event: %v", err)
|
||||
t.Errorf("Failed to read event: %v", err)
|
||||
return
|
||||
}
|
||||
if evt.Table != nil && evt.Table.TableName == tbl.name {
|
||||
// pretty.Println(evt)
|
||||
|
@ -150,7 +150,7 @@ func TestDatetime(t *testing.T) {
|
||||
defer tbl.drop(t)
|
||||
|
||||
for _, v := range vals {
|
||||
t.Run(fmt.Sprint(v), func(t *testing.T) {
|
||||
t.Run(v, func(t *testing.T) {
|
||||
suite.insertAndCompare(t, tbl, v)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user