Skip to content

Commit

Permalink
transformEventsForSend test should use buffered produce client
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymeng authored Jan 27, 2022
1 parent 3ae020b commit 019f6c5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import chai from "chai";
import {
EventData,
EventDataBatch,
EventHubProducerClient,
EventHubBufferedProducerClient,
PartitionPublishingProperties
} from "../../src";
import { EnvVarKeys, getEnvVars } from "../public/utils/testUtils";
Expand Down Expand Up @@ -47,7 +47,7 @@ describe("transformEventsForSend", function() {
let batch: EventDataBatch;

beforeEach("Populate EventDataBatch", async () => {
const producerClient = new EventHubProducerClient(service.connectionString, service.path);
const producerClient = new EventHubBufferedProducerClient(service.connectionString, service.path);
batch = await producerClient.createBatch();

for (let i = 1; i <= 10; i++) {
Expand Down Expand Up @@ -95,7 +95,7 @@ describe("transformEventsForSend", function() {
let batch: EventDataBatch;

beforeEach("Populate EventDataBatch", async () => {
const producerClient = new EventHubProducerClient(service.connectionString, service.path, {
const producerClient = new EventHubBufferedProducerClient(service.connectionString, service.path, {
enableIdempotentPartitions: true
});
batch = await producerClient.createBatch({ partitionId: "0" });
Expand Down

0 comments on commit 019f6c5

Please sign in to comment.