Skip to content

Commit bf05580

Browse files
benjackwhiteeli-r-ph
authored andcommitted
Fix up
1 parent b031cee commit bf05580

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

plugin-server/src/property-defs/property-defs-consumer.test.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { DateTime } from 'luxon'
22
import { Message } from 'node-rdkafka'
33

4-
import { createIncomingEvent, insertHogFunction as _insertHogFunction } from '~/tests/cdp/fixtures'
4+
import { insertHogFunction as _insertHogFunction } from '~/tests/cdp/fixtures'
55
import { mockProducer } from '~/tests/helpers/mocks/producer.mock'
66
import { resetTestDatabase } from '~/tests/helpers/sql'
77

88
import { ClickHouseEvent, Hub, PropertyType, RawClickHouseEvent, TimestampFormat } from '../types'
99
import { closeHub, createHub } from '../utils/db/hub'
10-
import { castTimestampOrNow, clickHouseTimestampSecondPrecisionToISO } from '../utils/utils'
10+
import { castTimestampOrNow } from '../utils/utils'
1111
import { getPropertyType, PropertyDefsConsumer } from './property-defs-consumer'
1212

1313
const DEFAULT_TEST_TIMEOUT = 5000
@@ -192,7 +192,11 @@ describe('PropertyDefsConsumer', () => {
192192
})
193193

194194
it('should write property defs to the DB', async () => {
195-
const events = [createClickHouseEvent({})]
195+
const events = await ingester.handleKafkaBatch(createKafkaMessages([createClickHouseEvent({})]))
196+
197+
// NOTE: Currently we just process without doing anything
198+
199+
expect(events).toEqual(undefined)
196200
})
197201
})
198202
})

plugin-server/src/property-defs/property-defs-consumer.ts

+3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ export const getPropertyType = (key: string, value: any): PropertyType | null =>
110110
return null
111111
}
112112

113+
/**
114+
* NOTE: This is currently experimental and only used to do some testing on performance and comparisons.
115+
*/
113116
export class PropertyDefsConsumer {
114117
protected name = 'property-defs-consumer'
115118
protected groupId: string

0 commit comments

Comments
 (0)