diff --git a/sdk/eventhub/event-hubs/test/receiver.spec.ts b/sdk/eventhub/event-hubs/test/receiver.spec.ts index 3f28853cc95d..09c06870a2b9 100644 --- a/sdk/eventhub/event-hubs/test/receiver.spec.ts +++ b/sdk/eventhub/event-hubs/test/receiver.spec.ts @@ -45,6 +45,7 @@ describe("EventHub Receiver", function(): void { env[EnvVarKeys.EVENTHUB_NAME], "define EVENTHUB_NAME in your environment before running integration tests." ); + partitionIds = await consumerClient.getPartitionIds({}); }); after("close the connection", async function(): Promise { @@ -59,7 +60,6 @@ describe("EventHub Receiver", function(): void { service.connectionString, service.path ); - partitionIds = await consumerClient.getPartitionIds({}); }); afterEach("Closing the clients", async () => {