misc tests

This commit is contained in:
Steven Soroka 2020-11-03 15:34:23 -05:00
parent 89919631c5
commit f8daed0597
2 changed files with 3 additions and 1 deletions

View File

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

View File

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