@@ -38,7 +38,7 @@ func newMockBuf(data []byte) buffer {
3838func compressHelper (t * testing.T , mc * mysqlConn , uncompressedPacket []byte ) []byte {
3939 // get status variables
4040
41- cs := mc .compresSequence
41+ cs := mc .compressSequence
4242
4343 var b bytes.Buffer
4444 cw := newCompressor (mc , & b )
@@ -54,13 +54,13 @@ func compressHelper(t *testing.T, mc *mysqlConn, uncompressedPacket []byte) []by
5454 }
5555
5656 if len (uncompressedPacket ) > 0 {
57- if mc .compresSequence != (cs + 1 ) {
58- t .Fatalf ("mc.compressionSequence updated incorrectly, expected %d and saw %d" , (cs + 1 ), mc .compresSequence )
57+ if mc .compressSequence != (cs + 1 ) {
58+ t .Fatalf ("mc.compressionSequence updated incorrectly, expected %d and saw %d" , (cs + 1 ), mc .compressSequence )
5959 }
6060
6161 } else {
62- if mc .compresSequence != cs {
63- t .Fatalf ("mc.compressionSequence updated incorrectly for case of empty write, expected %d and saw %d" , cs , mc .compresSequence )
62+ if mc .compressSequence != cs {
63+ t .Fatalf ("mc.compressionSequence updated incorrectly for case of empty write, expected %d and saw %d" , cs , mc .compressSequence )
6464 }
6565 }
6666
@@ -70,7 +70,7 @@ func compressHelper(t *testing.T, mc *mysqlConn, uncompressedPacket []byte) []by
7070// uncompressHelper uncompresses compressedPacket and checks state variables
7171func uncompressHelper (t * testing.T , mc * mysqlConn , compressedPacket []byte , expSize int ) []byte {
7272 // get status variables
73- cs := mc .compresSequence
73+ cs := mc .compressSequence
7474
7575 // mocking out buf variable
7676 mc .buf = newMockBuf (compressedPacket )
@@ -84,12 +84,12 @@ func uncompressHelper(t *testing.T, mc *mysqlConn, compressedPacket []byte, expS
8484 }
8585
8686 if expSize > 0 {
87- if mc .compresSequence != (cs + 1 ) {
88- t .Fatalf ("mc.compressionSequence updated incorrectly, expected %d and saw %d" , (cs + 1 ), mc .compresSequence )
87+ if mc .compressSequence != (cs + 1 ) {
88+ t .Fatalf ("mc.compressionSequence updated incorrectly, expected %d and saw %d" , (cs + 1 ), mc .compressSequence )
8989 }
9090 } else {
91- if mc .compresSequence != cs {
92- t .Fatalf ("mc.compressionSequence updated incorrectly for case of empty read, expected %d and saw %d" , cs , mc .compresSequence )
91+ if mc .compressSequence != cs {
92+ t .Fatalf ("mc.compressionSequence updated incorrectly for case of empty read, expected %d and saw %d" , cs , mc .compressSequence )
9393 }
9494 }
9595 return uncompressedPacket
0 commit comments