@@ -38,7 +38,7 @@ func newMockBuf(data []byte) buffer {
38
38
func compressHelper (t * testing.T , mc * mysqlConn , uncompressedPacket []byte ) []byte {
39
39
// get status variables
40
40
41
- cs := mc .compresSequence
41
+ cs := mc .compressSequence
42
42
43
43
var b bytes.Buffer
44
44
cw := newCompressor (mc , & b )
@@ -54,13 +54,13 @@ func compressHelper(t *testing.T, mc *mysqlConn, uncompressedPacket []byte) []by
54
54
}
55
55
56
56
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 )
59
59
}
60
60
61
61
} 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 )
64
64
}
65
65
}
66
66
@@ -70,7 +70,7 @@ func compressHelper(t *testing.T, mc *mysqlConn, uncompressedPacket []byte) []by
70
70
// uncompressHelper uncompresses compressedPacket and checks state variables
71
71
func uncompressHelper (t * testing.T , mc * mysqlConn , compressedPacket []byte , expSize int ) []byte {
72
72
// get status variables
73
- cs := mc .compresSequence
73
+ cs := mc .compressSequence
74
74
75
75
// mocking out buf variable
76
76
mc .buf = newMockBuf (compressedPacket )
@@ -84,12 +84,12 @@ func uncompressHelper(t *testing.T, mc *mysqlConn, compressedPacket []byte, expS
84
84
}
85
85
86
86
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 )
89
89
}
90
90
} 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 )
93
93
}
94
94
}
95
95
return uncompressedPacket
0 commit comments