diff --git a/sdk/servicebus/service-bus/samples/javascript/receiveMessagesLoop.js b/sdk/servicebus/service-bus/samples/javascript/receiveMessagesLoop.js index e5b941cfe5f5..880029da590b 100644 --- a/sdk/servicebus/service-bus/samples/javascript/receiveMessagesLoop.js +++ b/sdk/servicebus/service-bus/samples/javascript/receiveMessagesLoop.js @@ -28,7 +28,7 @@ async function main() { try { for (let i = 0; i < 10; i++) { const messages = await queueReceiver.receiveMessages(1, { - maxWaitTimeSeconds: 5 + maxWaitTimeInMs: 5000 }); if (!messages.length) { console.log("No more messages to receive");