Skip to content

Commit 4a874ca

Browse files
authored
[event-hubs] investigate flaky tests (Azure#13460)
* [event-hubs] investigate flaky tests * try to make logging work * more logging * more logging * increase time for subscription1 to recover to 20s from 10s since it can take 10s to attempt to reread from a partition that was disconnected * now remove logging and run test 20 times to see if it is fixed * revert .it * make test shorter!
1 parent b960def commit 4a874ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk/eventhub/event-hubs/test/public/eventHubConsumerClient.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,14 @@ describe("EventHubConsumerClient", () => {
291291
const consumerClient1 = new EventHubConsumerClient(
292292
EventHubConsumerClient.defaultConsumerGroupName,
293293
service.connectionString,
294-
service.path
294+
service.path,
295+
{ loadBalancingOptions: { updateIntervalInMs: 1000 } }
295296
);
296297
const consumerClient2 = new EventHubConsumerClient(
297298
EventHubConsumerClient.defaultConsumerGroupName,
298299
service.connectionString,
299-
service.path
300+
service.path,
301+
{ loadBalancingOptions: { updateIntervalInMs: 1000 } }
300302
);
301303

302304
clients.push(consumerClient1, consumerClient2);

0 commit comments

Comments
 (0)