misc tests
This commit is contained in:
parent
89919631c5
commit
f8daed0597
|
|
@ -190,6 +190,8 @@ func TestParseValue(t *testing.T) {
|
|||
{sql.RawBytes("YES"), 1, true},
|
||||
{sql.RawBytes("No"), 0, true},
|
||||
{sql.RawBytes("Yes"), 1, true},
|
||||
{sql.RawBytes("-794"), int64(-794), true},
|
||||
{sql.RawBytes("18446744073709552333"), float64(18446744073709552000), true},
|
||||
{sql.RawBytes(""), nil, false},
|
||||
}
|
||||
for _, cases := range testCases {
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ func TestRunParserInvalidMsg(t *testing.T) {
|
|||
|
||||
scnr := bufio.NewScanner(buf)
|
||||
for scnr.Scan() {
|
||||
if strings.Contains(scnr.Text(), fmt.Sprintf(malformedwarn, 1)) {
|
||||
if strings.Contains(scnr.Text(), "tcp_listener has received 1 malformed packets thus far.") {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue