Skip to content

Commit

Permalink
Fix reply to message test case
Browse files Browse the repository at this point in the history
  • Loading branch information
niveathika committed Nov 23, 2023
1 parent fc39aa3 commit 86004a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ballerina/tests/test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ function testReplyTo() returns error? {
runtime:sleep(10);

// Get the message thread
MailThread mailThread = check gmailClient->/users/me/threads/[message.threadId];
MailThread mailThread = check gmailClient->/users/me/threads/[replyMessage.threadId];

Message[]? threadMessages = mailThread.messages;

Expand All @@ -546,7 +546,7 @@ function testReplyTo() returns error? {
} else {
test:assertFail("Message not found");
}
check gmailClient->/users/me/threads/[threadId].delete();
check gmailClient->/users/me/threads/[replyMessage.threadId].delete();
}

@test:Config {
Expand Down

0 comments on commit 86004a3

Please sign in to comment.