소스 검색

remove code comments

Diego Alvarez 5 년 전
부모
커밋
2beebdf4e0
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      functional_producer_test.go

+ 3 - 3
functional_producer_test.go

@@ -243,9 +243,9 @@ func TestInterceptors(t *testing.T) {
 		case err := <-consumer.Errors():
 			t.Error(err)
 		case msg := <-consumer.Messages():
-			// producer interceptors: strconv.Itoa(i) + strconv.Itoa(i+100)
-			// consumer interceptor: strconv.Itoa(i+20)
-			expected := TestMessage + strconv.Itoa(i) + strconv.Itoa(i+100) + strconv.Itoa(i+20)
+			prodInteExpectation := strconv.Itoa(i) + strconv.Itoa(i+100)
+			consInteExpectation := strconv.Itoa(i + 20)
+			expected := TestMessage + prodInteExpectation + consInteExpectation
 			v := string(msg.Value)
 			if v != expected {
 				t.Errorf("Interceptor should have incremented the value, got %s, expected %s", v, expected)