Skip to content

Commit

Permalink
fix async methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Jan 16, 2024
1 parent 1eb07de commit 677837e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/functional/tests/directLine.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function getDirectLineClient() {
async function sendMessage(client, conversationId) {
let status;
do {
return client.apis.Conversations.Conversations_PostMessage({
await client.apis.Conversations.Conversations_PostMessage({
conversationId: conversationId,
message: {
from: directLineClientName,
Expand All @@ -52,7 +52,7 @@ async function sendMessage(client, conversationId) {
} while (status == 502);
}

function getMessages(client, conversationId) {
async function getMessages(client, conversationId) {
const watermark = null;
return client.apis.Conversations.Conversations_GetMessages({
conversationId: conversationId,
Expand Down

0 comments on commit 677837e

Please sign in to comment.