1
0
Fork 0

Fix easy linter issues

This commit is contained in:
Gregory Eremin 2018-11-09 00:39:23 +01:00
parent 858d8a7ebe
commit 9be127ae40
3 changed files with 5 additions and 5 deletions

View File

@ -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)
})
}

View File

@ -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)

View File

@ -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)
})
}