File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func TestBenchmark(t *testing.T) {
3535 go func () {
3636 counter := 0
3737 for record := range benchmark .collector {
38- counter += 1
38+ counter ++
3939 if counter == requests || record .Error != nil {
4040 break
4141 }
Original file line number Diff line number Diff line change @@ -92,24 +92,24 @@ loop:
9292}
9393
9494func updateStats (stats * Stats , record * Record ) {
95- stats .totalRequests += 1
95+ stats .totalRequests ++
9696
9797 if record .Error != nil {
98- stats .totalFailedReqeusts += 1
98+ stats .totalFailedReqeusts ++
9999
100100 switch record .Error .(type ) {
101101 case * ConnectError :
102- stats .errConnect += 1
102+ stats .errConnect ++
103103 case * ExceptionError :
104- stats .errException += 1
104+ stats .errException ++
105105 case * LengthError :
106- stats .errLength += 1
106+ stats .errLength ++
107107 case * ReceiveError :
108- stats .errReceive += 1
108+ stats .errReceive ++
109109 case * ResponseError :
110- stats .errResponse += 1
110+ stats .errResponse ++
111111 default :
112- stats .errException += 1
112+ stats .errException ++
113113 }
114114
115115 } else {
You can’t perform that action at this time.
0 commit comments