Skip to content

Commit 5672b80

Browse files
refactor: typo on unit test
1 parent 421a5cb commit 5672b80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stats/totalevent_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
func TestFlushTotalEventStat(t *testing.T) {
13-
// Arrange
13+
// setup
1414
eventCh := make(chan int32, 10)
1515
producedCh := make(chan *pb.TotalEventCountMessage, 10) // <- initialize channel
1616
mockKP := &mockKafkaProducer{producedCh: producedCh}
@@ -41,7 +41,7 @@ func TestFlushTotalEventStat(t *testing.T) {
4141
}
4242
}
4343

44-
// Optional: add a timeout test to ensure aggregation resets
44+
// add a timeout test to ensure aggregation resets
4545
func TestFlushResetsAfterPublish(t *testing.T) {
4646
eventCh := make(chan int32, 10)
4747
producedCh := make(chan *pb.TotalEventCountMessage, 10)

0 commit comments

Comments
 (0)