Skip to content

Commit bf908ee

Browse files
committed
chore: add logs
1 parent fc051c1 commit bf908ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

router-tests/testenv/pubsub.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,20 @@ func setupKafkaServer(t testing.TB) (*KafkaData, error) {
5252
defer kafkaMux.Unlock()
5353

5454
kafkaRefs += 1
55+
t.Logf("Adds kafka: %d", kafkaRefs)
5556

5657
t.Cleanup(func() {
5758
kafkaMux.Lock()
5859
defer kafkaMux.Unlock()
5960

6061
if kafkaRefs > 1 {
6162
kafkaRefs -= 1
63+
t.Logf("Removes kafka: %d", kafkaRefs)
6264
} else {
6365
if err := kafkaContainer.Close(); err != nil {
6466
t.Fatalf("could not purge kafka container: %s", err.Error())
6567
}
68+
t.Logf("Cleans kafka: %d", kafkaRefs)
6669
// This shouldn't be needed, but just in case
6770
kafkaData = nil
6871
kafkaContainer = nil

0 commit comments

Comments
 (0)