Skip to content

Commit 661bb26

Browse files
committed
Fixed the Login Unit Test cases
1 parent 70a64dc commit 661bb26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Contentstack.Management.Core.Tests/IntegrationTest/Contentstack001_LoginTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ public void Test002_Should_Return_Failuer_On_Wrong_Async_Login_Credentials()
5959

6060
[TestMethod]
6161
[DoNotParallelize]
62-
public void Test003_Should_Return_Success_On_Async_Login()
62+
public async System.Threading.Tasks.Task Test003_Should_Return_Success_On_Async_Login()
6363
{
6464
ContentstackClient client = new ContentstackClient();
6565

6666
try
6767
{
68-
ContentstackResponse contentstackResponse = client.Login(Contentstack.Credential);
68+
ContentstackResponse contentstackResponse = await client.LoginAsync(Contentstack.Credential);
6969
string loginResponse = contentstackResponse.OpenResponse();
7070

7171
Assert.IsNotNull(client.contentstackOptions.Authtoken);
7272
Assert.IsNotNull(loginResponse);
7373

74-
client.Logout();
74+
await client.LogoutAsync();
7575
}
7676
catch (Exception e)
7777
{

0 commit comments

Comments
 (0)