Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Dec 25, 2024
1 parent f97321c commit dc27719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ describe('CDP Processed Events Consumer', () => {
const invocations = await processor.processBatch([globals])

expect(invocations).toHaveLength(0)
expect(mockProducer.produce).toHaveBeenCalledTimes(2)
expect(mockProducer.queueMessages).toHaveBeenCalledTimes(1)

expect(decodeAllKafkaMessages()).toMatchObject([
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HighLevelProducer } from 'node-rdkafka'

Check failure on line 1 in plugin-server/tests/main/ingestion-queues/session-recording/services/console-log-ingester.test.ts

View workflow job for this annotation

GitHub Actions / Code quality

'HighLevelProducer' is defined but never used. Allowed unused vars must match /^_/u

import { produce } from '../../../../../src/kafka/producer'
import { KafkaProducerWrapper, produce } from '../../../../../src/kafka/producer'
import { ConsoleLogsIngester } from '../../../../../src/main/ingestion-queues/session-recording/services/console-logs-ingester'
import { OffsetHighWaterMarker } from '../../../../../src/main/ingestion-queues/session-recording/services/offset-high-water-marker'
import { IncomingRecordingMessage } from '../../../../../src/main/ingestion-queues/session-recording/types'
Expand Down Expand Up @@ -43,7 +43,7 @@ describe('console log ingester', () => {

const mockedHighWaterMarker = { isBelowHighWaterMark: jest.fn() } as unknown as OffsetHighWaterMarker
consoleLogIngester = new ConsoleLogsIngester(
mockProducer as unknown as HighLevelProducer,
mockProducer as unknown as KafkaProducerWrapper,
mockedHighWaterMarker
)
})
Expand Down

0 comments on commit dc27719

Please sign in to comment.