test logging cleanup

This commit is contained in:
Shlomi Noach 2016-12-11 02:22:56 +01:00
parent 1d84cb933c
commit 3fd85ee8b1

View File

@ -98,13 +98,11 @@ func TestTokenizeAlterStatement(t *testing.T) {
{
alterStatement := "add column t int, add column e enum('a','b','c')"
tokens, _ := parser.tokenizeAlterStatement(alterStatement)
log.Errorf("%#v", tokens)
test.S(t).ExpectTrue(reflect.DeepEqual(tokens, []string{"add column t int", "add column e enum('a','b','c')"}))
}
{
alterStatement := "add column t int(11), add column e enum('a','b','c')"
tokens, _ := parser.tokenizeAlterStatement(alterStatement)
log.Errorf("%#v", tokens)
test.S(t).ExpectTrue(reflect.DeepEqual(tokens, []string{"add column t int(11)", "add column e enum('a','b','c')"}))
}
}