[Service Bus] Remove message count check - flaky rule filter test (#13131)

https://github.com/Azure/azure-sdk-for-js/pull/13105 investigates the flakyness.

The reason why the message count in the test can sometimes(5/1000 times) be zero is that the sent messages might not have been filtered into the subscription by the time we call the runtime properties method.

If we call the receiveMessages directly, the inherent delay would help in receiving the messages and should be enough for the test.
This commit is contained in:
Harsha Nalluru 2021-01-08 15:11:56 -08:00 коммит произвёл GitHub
Родитель 8b5463b2d9
Коммит b76efbb4c1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -57,18 +57,6 @@ describe("Filter messages with the rules set by the ATOM API", () => {
await serviceBusClient.createSender(topicName).sendMessages(messagesToSend);
// Making sure the subscription has the expected number of messages
should.equal(
(
await serviceBusAtomManagementClient.getSubscriptionRuntimeProperties(
topicName,
subscriptionName
)
).totalMessageCount,
numberOfMessagesToBeFiltered,
"Unexpected number of messages filtered"
);
const receivedMessages = await serviceBusClient
.createReceiver(topicName, subscriptionName)
.receiveMessages(5);