File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
internal/testserverclient Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -2728,7 +2728,7 @@ func (cli *TestServerClient) RunTestConnectionCount(t *testing.T) {
2728
2728
})
2729
2729
}
2730
2730
2731
- func (cli * TestServerClient ) RunTestTypeOfSendLongData (t * testing.T ) {
2731
+ func (cli * TestServerClient ) RunTestTypeAndCharsetOfSendLongData (t * testing.T ) {
2732
2732
cli .RunTests (t , func (config * mysql.Config ) {
2733
2733
config .MaxAllowedPacket = 1024
2734
2734
}, func (dbt * testkit.DBTestKit ) {
@@ -2753,9 +2753,7 @@ func (cli *TestServerClient) RunTestTypeOfSendLongData(t *testing.T) {
2753
2753
require .Equal (t , str , j )
2754
2754
}
2755
2755
})
2756
- }
2757
2756
2758
- func (cli * TestServerClient ) RunTestCharsetOfSendLongData (t * testing.T ) {
2759
2757
str := strings .Repeat ("你好" , 1024 )
2760
2758
enc := simplifiedchinese .GBK .NewEncoder ()
2761
2759
gbkStr , err := enc .String (str )
@@ -2769,6 +2767,8 @@ func (cli *TestServerClient) RunTestCharsetOfSendLongData(t *testing.T) {
2769
2767
2770
2768
conn , err := dbt .GetDB ().Conn (ctx )
2771
2769
require .NoError (t , err )
2770
+ _ , err = conn .ExecContext (ctx , "drop table t" )
2771
+ require .NoError (t , err )
2772
2772
_ , err = conn .ExecContext (ctx , "CREATE TABLE t (t TEXT);" )
2773
2773
require .NoError (t , err )
2774
2774
Original file line number Diff line number Diff line change @@ -3083,12 +3083,7 @@ func TestConnectionCount(t *testing.T) {
3083
3083
ts .RunTestConnectionCount (t )
3084
3084
}
3085
3085
3086
- func TestTypeOfSendLongData (t * testing.T ) {
3086
+ func TestTypeAndCharsetOfSendLongData (t * testing.T ) {
3087
3087
ts := servertestkit .CreateTidbTestSuite (t )
3088
- ts .RunTestTypeOfSendLongData (t )
3089
- }
3090
-
3091
- func TestCharsetOfSendLongData (t * testing.T ) {
3092
- ts := servertestkit .CreateTidbTestSuite (t )
3093
- ts .RunTestCharsetOfSendLongData (t )
3088
+ ts .RunTestTypeAndCharsetOfSendLongData (t )
3094
3089
}
You can’t perform that action at this time.
0 commit comments